mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-13 11:35:56 +00:00
only main window show tabbar border, change cm tabbar color (#9073)
Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
@@ -505,17 +505,20 @@ class _DesktopTabState extends State<DesktopTab>
|
||||
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<TabbarTheme> {
|
||||
final Color? selectedTabIconColor;
|
||||
final Color? unSelectedTabIconColor;
|
||||
|
||||
Reference in New Issue
Block a user