2020-06-11 13:43:06 +08:00
|
|
|
/*
|
|
|
|
* Default style sheet on Linux Platforms with focus highlighting flag enabled
|
|
|
|
*/
|
2022-10-28 21:21:21 +08:00
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* CDockContainerWidget
|
|
|
|
*****************************************************************************/
|
2020-06-18 14:29:41 +08:00
|
|
|
ads--CDockContainerWidget {
|
2022-10-28 21:21:21 +08:00
|
|
|
background: palette(window);
|
2020-06-11 13:43:06 +08:00
|
|
|
}
|
2022-10-28 21:21:21 +08:00
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* CDockSplitter
|
|
|
|
*****************************************************************************/
|
2021-12-20 14:46:26 +08:00
|
|
|
ads--CDockContainerWidget > QSplitter{
|
|
|
|
padding: 1 0 1 0;
|
|
|
|
}
|
|
|
|
|
2020-06-11 13:43:06 +08:00
|
|
|
|
2020-10-22 04:07:41 +08:00
|
|
|
ads--CDockContainerWidget ads--CDockSplitter::handle {
|
2020-08-31 17:57:30 +08:00
|
|
|
background: palette(dark);
|
2020-06-11 13:43:06 +08:00
|
|
|
}
|
|
|
|
|
2022-10-28 21:21:21 +08:00
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* CDockAreaWidget
|
|
|
|
*****************************************************************************/
|
2020-06-18 14:29:41 +08:00
|
|
|
ads--CDockAreaWidget {
|
2020-08-31 17:57:30 +08:00
|
|
|
background: palette(window);
|
2020-06-11 13:43:06 +08:00
|
|
|
}
|
|
|
|
|
2020-06-18 14:29:41 +08:00
|
|
|
ads--CDockAreaWidget #tabsMenuButton::menu-indicator {
|
2020-08-31 17:57:30 +08:00
|
|
|
image: none;
|
2020-06-11 13:43:06 +08:00
|
|
|
}
|
|
|
|
|
2022-10-28 21:21:21 +08:00
|
|
|
|
|
|
|
ads--CTitleBarButton {
|
|
|
|
padding: 0px 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#tabsMenuButton {
|
|
|
|
qproperty-icon: url(:/ads/images/tabs-menu-button.svg);
|
|
|
|
qproperty-iconSize: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#dockAreaCloseButton {
|
|
|
|
qproperty-icon: url(:/ads/images/close-button.svg),
|
|
|
|
url(:/ads/images/close-button-disabled.svg) disabled;
|
|
|
|
qproperty-iconSize: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#detachGroupButton {
|
|
|
|
qproperty-icon: url(:/ads/images/detach-button.svg),
|
|
|
|
url(:/ads/images/detach-button-disabled.svg) disabled;
|
|
|
|
qproperty-iconSize: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* CDockAreaTitleBar
|
|
|
|
*****************************************************************************/
|
|
|
|
ads--CDockAreaTitleBar {
|
|
|
|
background: transparent;
|
|
|
|
border-bottom: 2px solid palette(light);
|
|
|
|
padding-bottom: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
ads--CDockAreaWidget[focused="true"] ads--CDockAreaTitleBar {
|
|
|
|
background: transparent;
|
|
|
|
border-bottom: 2px solid palette(highlight);
|
|
|
|
padding-bottom: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* CDockWidgetTab and close button styling
|
|
|
|
*****************************************************************************/
|
2020-06-18 14:29:41 +08:00
|
|
|
ads--CDockWidgetTab {
|
2020-08-31 17:57:30 +08:00
|
|
|
background: palette(window);
|
|
|
|
border-color: palette(light);
|
|
|
|
border-style: solid;
|
|
|
|
border-width: 0 1px 0 0;
|
|
|
|
padding: 0 0px;
|
2020-06-11 13:43:06 +08:00
|
|
|
}
|
|
|
|
|
2020-06-18 14:29:41 +08:00
|
|
|
ads--CDockWidgetTab[activeTab="true"] {
|
2020-08-31 17:57:30 +08:00
|
|
|
background: qlineargradient(spread : pad, x1 : 0, y1 : 0, x2 : 0, y2 : 0.5, stop : 0
|
|
|
|
palette(window), stop:1 palette(light));
|
|
|
|
/*background: palette(highlight);*/
|
2020-06-11 13:43:06 +08:00
|
|
|
}
|
|
|
|
|
2020-06-18 14:29:41 +08:00
|
|
|
ads--CDockWidgetTab QLabel {
|
2020-08-31 17:57:30 +08:00
|
|
|
color: palette(dark);
|
2020-06-11 13:43:06 +08:00
|
|
|
}
|
|
|
|
|
2020-06-18 14:29:41 +08:00
|
|
|
ads--CDockWidgetTab[activeTab="true"] QLabel {
|
2020-08-31 17:57:30 +08:00
|
|
|
color: palette(foreground);
|
2020-06-11 13:43:06 +08:00
|
|
|
}
|
|
|
|
|
2020-06-14 22:25:18 +08:00
|
|
|
|
2020-06-18 14:29:41 +08:00
|
|
|
#tabCloseButton {
|
2020-08-31 17:57:30 +08:00
|
|
|
margin-top: 2px;
|
|
|
|
background: none;
|
|
|
|
border: none;
|
|
|
|
padding: 0px -2px;
|
|
|
|
qproperty-icon: url(:/ads/images/close-button.svg),
|
|
|
|
url(:/ads/images/close-button-disabled.svg) disabled;
|
|
|
|
qproperty-iconSize: 16px;
|
2020-06-11 13:43:06 +08:00
|
|
|
}
|
|
|
|
|
2020-06-18 14:29:41 +08:00
|
|
|
#tabCloseButton:hover {
|
2020-08-31 17:57:30 +08:00
|
|
|
/*border: 1px solid rgba(0, 0, 0, 32);*/
|
|
|
|
background: rgba(0, 0, 0, 24);
|
2020-06-11 13:43:06 +08:00
|
|
|
}
|
|
|
|
|
2020-06-18 14:29:41 +08:00
|
|
|
#tabCloseButton:pressed {
|
2020-08-31 17:57:30 +08:00
|
|
|
background: rgba(0, 0, 0, 48);
|
2020-06-11 13:43:06 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Focus related styling */
|
2022-10-26 13:29:58 +08:00
|
|
|
ads--CDockWidgetTab[focused="true"] {
|
|
|
|
background: palette(highlight);
|
|
|
|
border-color: palette(highlight);
|
|
|
|
}
|
|
|
|
|
2022-10-28 21:21:21 +08:00
|
|
|
ads--CDockWidgetTab[focused="true"] > #tabCloseButton {
|
2020-08-31 17:57:30 +08:00
|
|
|
qproperty-icon: url(:/ads/images/close-button-focused.svg)
|
2020-06-11 13:43:06 +08:00
|
|
|
}
|
|
|
|
|
2022-10-28 21:21:21 +08:00
|
|
|
ads--CDockWidgetTab[focused="true"] > #tabCloseButton:hover {
|
2020-08-31 17:57:30 +08:00
|
|
|
background: rgba(255, 255, 255, 48);
|
2020-06-11 13:43:06 +08:00
|
|
|
}
|
|
|
|
|
2022-10-28 21:21:21 +08:00
|
|
|
ads--CDockWidgetTab[focused="true"] > #tabCloseButton:pressed {
|
2020-08-31 17:57:30 +08:00
|
|
|
background: rgba(255, 255, 255, 92);
|
2020-06-11 13:43:06 +08:00
|
|
|
}
|
|
|
|
|
2020-06-18 14:29:41 +08:00
|
|
|
ads--CDockWidgetTab[focused="true"] QLabel {
|
2020-08-31 17:57:30 +08:00
|
|
|
color: palette(light);
|
2020-06-11 13:43:06 +08:00
|
|
|
}
|
|
|
|
|
2022-10-28 21:21:21 +08:00
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* CDockWidget
|
|
|
|
*****************************************************************************/
|
|
|
|
ads--CDockWidget {
|
|
|
|
background: palette(light);
|
|
|
|
border-color: palette(light);
|
|
|
|
border-style: solid;
|
|
|
|
border-width: 1px 0 0 0;
|
2020-06-11 13:43:06 +08:00
|
|
|
}
|
|
|
|
|
2022-10-28 21:21:21 +08:00
|
|
|
|
|
|
|
QScrollArea#dockWidgetScrollArea {
|
|
|
|
padding: 0px;
|
|
|
|
border: none;
|
2020-06-11 13:43:06 +08:00
|
|
|
}
|
|
|
|
|
2020-06-18 15:21:46 +08:00
|
|
|
|
2022-10-28 21:21:21 +08:00
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* Floating widget styling
|
|
|
|
*****************************************************************************/
|
2020-08-31 15:38:18 +08:00
|
|
|
ads--CFloatingWidgetTitleBar {
|
|
|
|
qproperty-maximizeIcon: url(:/ads/images/maximize-button.svg);
|
|
|
|
qproperty-normalIcon: url(:/ads/images/restore-button.svg);
|
|
|
|
}
|
|
|
|
|
2020-06-18 15:21:46 +08:00
|
|
|
|
2020-08-31 17:57:30 +08:00
|
|
|
/* does not properly work on KDE
|
2020-06-18 15:21:46 +08:00
|
|
|
ads--CFloatingDockContainer[isActiveWindow="true"] ads--CFloatingWidgetTitleBar {
|
2020-08-31 17:57:30 +08:00
|
|
|
background: palette(highlight);
|
2020-08-31 15:38:18 +08:00
|
|
|
qproperty-maximizeIcon: url(:/ads/images/maximize-button-focused.svg);
|
|
|
|
qproperty-normalIcon: url(:/ads/images/restore-button-focused.svg);
|
2020-06-11 13:43:06 +08:00
|
|
|
}
|
|
|
|
|
2020-06-18 15:21:46 +08:00
|
|
|
ads--CFloatingDockContainer[isActiveWindow="true"] #floatingTitleLabel {
|
2020-08-31 15:38:18 +08:00
|
|
|
color: palette(light);
|
2020-06-18 15:21:46 +08:00
|
|
|
}
|
2020-08-31 17:57:30 +08:00
|
|
|
*/
|
2020-06-18 15:21:46 +08:00
|
|
|
|
2020-08-31 15:38:18 +08:00
|
|
|
#floatingTitleCloseButton, #floatingTitleMaximizeButton {
|
2020-06-18 15:21:46 +08:00
|
|
|
qproperty-iconSize: 16px;
|
|
|
|
border: none;
|
2020-08-31 17:57:30 +08:00
|
|
|
margin: 6px 3px 6px 3px;
|
2020-06-18 15:21:46 +08:00
|
|
|
}
|
|
|
|
|
2020-08-31 15:38:18 +08:00
|
|
|
|
|
|
|
#floatingTitleCloseButton {
|
|
|
|
qproperty-icon: url(:/ads/images/close-button.svg);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#floatingTitleCloseButton:hover, #floatingTitleMaximizeButton:hover {
|
2020-06-18 15:21:46 +08:00
|
|
|
background: rgba(0, 0, 0, 24);
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
2020-08-31 15:38:18 +08:00
|
|
|
|
|
|
|
#floatingTitleCloseButton:pressed, #floatingTitleMaximizeButton:pressed {
|
2020-06-18 15:21:46 +08:00
|
|
|
background: rgba(0, 0, 0, 48);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-08-31 15:38:18 +08:00
|
|
|
ads--CFloatingDockContainer[isActiveWindow="true"] #floatingTitleMaximizeButton {
|
|
|
|
qproperty-iconSize: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-08-31 17:57:30 +08:00
|
|
|
/* does not properly work on KDE
|
2020-06-18 15:21:46 +08:00
|
|
|
ads--CFloatingDockContainer[isActiveWindow="true"] #floatingTitleCloseButton {
|
|
|
|
qproperty-icon: url(:/ads/images/close-button-focused.svg);
|
|
|
|
qproperty-iconSize: 16px;
|
|
|
|
}
|
|
|
|
|
2020-08-31 15:38:18 +08:00
|
|
|
ads--CFloatingDockContainer[isActiveWindow="true"] #floatingTitleCloseButton:hover,
|
|
|
|
ads--CFloatingDockContainer[isActiveWindow="true"] #floatingTitleMaximizeButton:hover {
|
2020-06-18 15:21:46 +08:00
|
|
|
background: rgba(255, 255, 255, 48);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-08-31 15:38:18 +08:00
|
|
|
ads--CFloatingDockContainer[isActiveWindow="true"] #floatingTitleCloseButton:pressed,
|
|
|
|
ads--CFloatingDockContainer[isActiveWindow="true"] #floatingTitleMaximizeButton:pressed {
|
2020-06-18 15:21:46 +08:00
|
|
|
background: rgba(255, 255, 255, 92);
|
|
|
|
}
|
2020-08-31 17:57:30 +08:00
|
|
|
*/
|
2020-10-22 04:07:41 +08:00
|
|
|
|
2022-10-28 21:21:21 +08:00
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
*
|
|
|
|
* Styling of auto hide functionality
|
|
|
|
*
|
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
2022-11-01 19:06:59 +08:00
|
|
|
* CAutoHideTab
|
2022-10-28 21:21:21 +08:00
|
|
|
*****************************************************************************/
|
2022-11-01 19:06:59 +08:00
|
|
|
ads--CAutoHideTab {
|
2022-10-28 21:21:21 +08:00
|
|
|
qproperty-iconSize: 16px 16px;/* this is optional in case you would like to change icon size*/
|
|
|
|
padding-left: 2px;
|
|
|
|
padding-right: 0px;
|
|
|
|
text-align: center;
|
|
|
|
margin-right: 6px;
|
|
|
|
min-height: 20;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
2022-11-01 19:06:59 +08:00
|
|
|
ads--CAutoHideTab[sideTabBarArea="1"],
|
|
|
|
ads--CAutoHideTab[sideTabBarArea="3"] {
|
2022-10-28 21:21:21 +08:00
|
|
|
border-bottom: 5px solid rgba(0, 0, 0, 48);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2022-11-01 19:06:59 +08:00
|
|
|
ads--CAutoHideTab[sideTabBarArea="0"],
|
|
|
|
ads--CAutoHideTab[sideTabBarArea="2"] {
|
2022-10-28 21:21:21 +08:00
|
|
|
border-top: 5px solid rgba(0, 0, 0, 48);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2022-11-01 19:06:59 +08:00
|
|
|
ads--CAutoHideTab:hover[sideTabBarArea="0"],
|
|
|
|
ads--CAutoHideTab:hover[sideTabBarArea="2"] {
|
2022-10-28 21:21:21 +08:00
|
|
|
border-top: 5px solid palette(highlight);
|
|
|
|
color: palette(highlight);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2022-11-01 19:06:59 +08:00
|
|
|
ads--CAutoHideTab:hover[sideTabBarArea="1"],
|
|
|
|
ads--CAutoHideTab:hover[sideTabBarArea="3"] {
|
2022-10-28 21:21:21 +08:00
|
|
|
border-bottom: 5px solid palette(highlight);
|
|
|
|
color: palette(highlight);
|
|
|
|
}
|
|
|
|
|
2022-11-01 19:06:59 +08:00
|
|
|
ads--CAutoHideTab[sideTabBarArea="0"][activeTab="true"],
|
|
|
|
ads--CAutoHideTab[sideTabBarArea="2"][activeTab="true"] {
|
2022-10-28 21:21:21 +08:00
|
|
|
border-top: 5px solid palette(highlight);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2022-11-01 19:06:59 +08:00
|
|
|
ads--CAutoHideTab[sideTabBarArea="1"][activeTab="true"],
|
|
|
|
ads--CAutoHideTab[sideTabBarArea="3"][activeTab="true"] {
|
2022-10-28 21:21:21 +08:00
|
|
|
border-bottom: 5px solid palette(highlight);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
2022-11-01 19:06:59 +08:00
|
|
|
* CAutoHideBar
|
2022-10-28 21:21:21 +08:00
|
|
|
*****************************************************************************/
|
2022-11-01 19:06:59 +08:00
|
|
|
ads--CAutoHideBar{
|
2022-10-28 21:21:21 +08:00
|
|
|
background: palette(window);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2022-11-01 19:06:59 +08:00
|
|
|
ads--CAutoHideBar[sideTabBarArea="0"] {
|
2022-10-28 21:21:21 +08:00
|
|
|
border-bottom: 1px solid palette(dark);
|
|
|
|
}
|
|
|
|
|
2022-11-01 19:06:59 +08:00
|
|
|
ads--CAutoHideBar[sideTabBarArea="1"] {
|
2022-10-28 21:21:21 +08:00
|
|
|
border-right: 1px solid palette(dark);
|
|
|
|
}
|
|
|
|
|
2022-11-01 19:06:59 +08:00
|
|
|
ads--CAutoHideBar[sideTabBarArea="2"] {
|
2022-10-28 21:21:21 +08:00
|
|
|
border-left: 1px solid palette(dark);
|
|
|
|
}
|
|
|
|
|
2022-11-01 19:06:59 +08:00
|
|
|
ads--CAutoHideBar[sideTabBarArea="3"] {
|
2022-10-28 21:21:21 +08:00
|
|
|
border-top: 1px solid palette(dark);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* CAutoHideDockContainer
|
|
|
|
*****************************************************************************/
|
|
|
|
ads--CAutoHideDockContainer {
|
|
|
|
background: palette(window);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ads--CAutoHideDockContainer ads--CDockAreaTitleBar {
|
|
|
|
background: palette(highlight);
|
|
|
|
padding: 0px;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This is required because the ads--CDockAreaWidget[focused="true"] will
|
|
|
|
* overwrite the ads--CAutoHideDockContainer ads--CDockAreaTitleBar rule
|
|
|
|
*/
|
|
|
|
ads--CAutoHideDockContainer ads--CDockAreaWidget[focused="true"] ads--CDockAreaTitleBar {
|
|
|
|
background: palette(highlight);
|
|
|
|
padding: 0px;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#autoHideTitleLabel {
|
|
|
|
padding-left: 4px;
|
|
|
|
color: palette(light);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* CAutoHideDockContainer titlebar buttons
|
|
|
|
*****************************************************************************/
|
|
|
|
#dockAreaAutoHideButton {
|
|
|
|
qproperty-icon: url(:/ads/images/vs-pin-button.svg);
|
|
|
|
qproperty-iconSize: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
ads--CAutoHideDockContainer #dockAreaAutoHideButton {
|
|
|
|
qproperty-icon: url(:/ads/images/vs-pin-button-pinned-focused.svg);
|
|
|
|
qproperty-iconSize: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ads--CAutoHideDockContainer #dockAreaCloseButton{
|
|
|
|
qproperty-icon: url(:/ads/images/close-button-focused.svg)
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ads--CAutoHideDockContainer ads--CTitleBarButton:hover {
|
|
|
|
background: rgba(255, 255, 255, 48);
|
|
|
|
}
|
|
|
|
|
|
|
|
ads--CAutoHideDockContainer ads--CTitleBarButton:pressed {
|
|
|
|
background: rgba(255, 255, 255, 96);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* CAutoHideDockContainer Titlebar and Buttons
|
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* CResizeHandle
|
|
|
|
*****************************************************************************/
|
|
|
|
ads--CResizeHandle {
|
|
|
|
background: palette(window);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ads--CAutoHideDockContainer[sideTabBarArea="0"] ads--CResizeHandle {
|
|
|
|
border-top: 1px solid palette(dark);
|
|
|
|
}
|
|
|
|
|
|
|
|
ads--CAutoHideDockContainer[sideTabBarArea="1"] ads--CResizeHandle {
|
|
|
|
border-left: 1px solid palette(dark);
|
|
|
|
}
|
|
|
|
|
|
|
|
ads--CAutoHideDockContainer[sideTabBarArea="2"] ads--CResizeHandle {
|
|
|
|
border-right: 1px solid palette(dark);
|
|
|
|
}
|
|
|
|
|
|
|
|
ads--CAutoHideDockContainer[sideTabBarArea="3"] ads--CResizeHandle {
|
|
|
|
border-top: 1px solid palette(dark);
|
|
|
|
}
|
|
|
|
|