trunk #2

Merged
Guido merged 229 commits from cwtch.im/cwtch-ui:trunk into trunk 2023-04-16 14:29:14 +00:00
2 changed files with 20 additions and 4 deletions
Showing only changes of commit 596b65f12d - Show all commits

View File

@ -34,8 +34,16 @@ class _RemoteServerRowState extends State<RemoteServerRow> {
child: Row(mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [
Padding(
padding: const EdgeInsets.all(6.0), //border size
child: Icon(CwtchIcons.dns_24px,
color: running ? Provider.of<Settings>(context).theme.portraitOnlineBorderColor : Provider.of<Settings>(context).theme.portraitOfflineBorderColor, size: 64)),
child: Row(children: [
Icon(CwtchIcons.dns_24px,
color: running ? Provider.of<Settings>(context).theme.portraitOnlineBorderColor : Provider.of<Settings>(context).theme.portraitOfflineBorderColor, size: 64),
Visibility(
visible: !running,
child: Icon(
CwtchIcons.negative_heart_24px,
color: Provider.of<Settings>(context).theme.portraitOfflineBorderColor,
)),
])),
Expanded(
child: Column(
children: [

View File

@ -27,8 +27,16 @@ class _ServerRowState extends State<ServerRow> {
child: Row(mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [
Padding(
padding: const EdgeInsets.all(6.0), //border size
child: Icon(CwtchIcons.dns_24px,
color: server.running ? Provider.of<Settings>(context).theme.portraitOnlineBorderColor : Provider.of<Settings>(context).theme.portraitOfflineBorderColor, size: 64)),
child: Row(children: [
Icon(CwtchIcons.dns_24px,
color: server.running ? Provider.of<Settings>(context).theme.portraitOnlineBorderColor : Provider.of<Settings>(context).theme.portraitOfflineBorderColor, size: 64),
Visibility(
visible: !server.running,
child: Icon(
CwtchIcons.negative_heart_24px,
color: Provider.of<Settings>(context).theme.portraitOfflineBorderColor,
)),
])),
Expanded(
child: Column(
children: [