new cm tab style

This commit is contained in:
rustdesk
2023-07-08 17:55:55 +08:00
parent 94763e9fe0
commit 8c186edd18
2 changed files with 60 additions and 39 deletions

View File

@@ -150,10 +150,11 @@ class ConnectionManagerState extends State<ConnectionManager> {
showClose: true,
onWindowCloseButton: handleWindowCloseButton,
controller: serverModel.tabController,
selectedBorderColor: MyTheme.accent,
maxLabelWidth: 100,
tail: buildScrollJumper(),
selectedTabBackgroundColor:
Theme.of(context).hintColor.withOpacity(0.2),
Theme.of(context).hintColor.withOpacity(0),
tabBuilder: (key, icon, label, themeConf) {
final client = serverModel.clients
.firstWhereOrNull((client) => client.id.toString() == key);