diff --git a/flutter/lib/desktop/pages/server_page.dart b/flutter/lib/desktop/pages/server_page.dart index a05243747..d2588a286 100644 --- a/flutter/lib/desktop/pages/server_page.dart +++ b/flutter/lib/desktop/pages/server_page.dart @@ -83,7 +83,7 @@ class _DesktopServerPageState extends State child: Consumer( builder: (context, serverModel, child) { final body = Scaffold( - backgroundColor: Theme.of(context).scaffoldBackgroundColor, + backgroundColor: Theme.of(context).colorScheme.background, body: ConnectionManager(), ); return isLinux @@ -193,8 +193,6 @@ class ConnectionManagerState extends State maxLabelWidth: 100, tail: null, //buildScrollJumper(), blockTab: allowRemoteCMModification() ? null : _block, - selectedTabBackgroundColor: - Theme.of(context).hintColor.withOpacity(0), tabBuilder: (key, icon, label, themeConf) { final client = serverModel.clients .firstWhereOrNull((client) => client.id.toString() == key); @@ -229,7 +227,7 @@ class ConnectionManagerState extends State borderWidth; final realChatPageWidth = constrains.maxWidth - realClosedWidth; - return Row(children: [ + final row = Row(children: [ if (constrains.maxWidth > kConnectionManagerWindowSizeClosedChat.width) Consumer( @@ -247,6 +245,10 @@ class ConnectionManagerState extends State child: SizedBox(width: realClosedWidth, child: pageView)), ]); + return Container( + color: Theme.of(context).scaffoldBackgroundColor, + child: row, + ); }, ), ), diff --git a/flutter/lib/desktop/widgets/tabbar_widget.dart b/flutter/lib/desktop/widgets/tabbar_widget.dart index fca6efb2e..0b48b3b92 100644 --- a/flutter/lib/desktop/widgets/tabbar_widget.dart +++ b/flutter/lib/desktop/widgets/tabbar_widget.dart @@ -505,17 +505,20 @@ class _DesktopTabState extends State Obx(() { if (stateGlobal.showTabBar.isTrue && !(kUseCompatibleUiMode && isHideSingleItem())) { + final showBottomDivider = _showTabBarBottomDivider(tabType); return SizedBox( height: _kTabBarHeight, child: Column( children: [ SizedBox( - height: _kTabBarHeight - 1, + height: + showBottomDivider ? _kTabBarHeight - 1 : _kTabBarHeight, child: _buildBar(), ), - const Divider( - height: 1, - ), + if (showBottomDivider) + const Divider( + height: 1, + ), ], ), ); @@ -1161,7 +1164,10 @@ class _TabState extends State<_Tab> with RestorationMixin { child: Row( children: [ SizedBox( - height: _kTabBarHeight, + // _kTabBarHeight also displays normally + height: _showTabBarBottomDivider(widget.tabType) + ? _kTabBarHeight - 1 + : _kTabBarHeight, child: Row( crossAxisAlignment: CrossAxisAlignment.center, children: [ @@ -1414,6 +1420,10 @@ class _TabDropDownButtonState extends State<_TabDropDownButton> { } } +bool _showTabBarBottomDivider(DesktopTabType tabType) { + return tabType == DesktopTabType.main || tabType == DesktopTabType.install; +} + class TabbarTheme extends ThemeExtension { final Color? selectedTabIconColor; final Color? unSelectedTabIconColor;