mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-11-15 21:25:44 +08:00
Updated linux stylesheets to fix titlebar issue on KDE
This commit is contained in:
parent
059a055483
commit
73f42d55ca
@ -2,89 +2,89 @@
|
|||||||
* Default style sheet on Linux Platforms with focus highlighting flag enabled
|
* Default style sheet on Linux Platforms with focus highlighting flag enabled
|
||||||
*/
|
*/
|
||||||
ads--CDockContainerWidget {
|
ads--CDockContainerWidget {
|
||||||
background: palette(dark);
|
background: palette(dark);
|
||||||
}
|
}
|
||||||
|
|
||||||
ads--CDockContainerWidget QSplitter::handle {
|
ads--CDockContainerWidget QSplitter::handle {
|
||||||
background: palette(dark);
|
background: palette(dark);
|
||||||
}
|
}
|
||||||
|
|
||||||
ads--CDockAreaWidget {
|
ads--CDockAreaWidget {
|
||||||
background: palette(window);
|
background: palette(window);
|
||||||
border: 1px solid white;
|
border: 1px solid white;
|
||||||
}
|
}
|
||||||
|
|
||||||
ads--CDockAreaWidget #tabsMenuButton::menu-indicator {
|
ads--CDockAreaWidget #tabsMenuButton::menu-indicator {
|
||||||
image: none;
|
image: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
ads--CDockWidgetTab {
|
ads--CDockWidgetTab {
|
||||||
background: palette(window);
|
background: palette(window);
|
||||||
border-color: palette(light);
|
border-color: palette(light);
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-width: 0 1px 0 0;
|
border-width: 0 1px 0 0;
|
||||||
padding: 0 0px;
|
padding: 0 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
ads--CDockWidgetTab[activeTab="true"] {
|
ads--CDockWidgetTab[activeTab="true"] {
|
||||||
background: qlineargradient(spread : pad, x1 : 0, y1 : 0, x2 : 0, y2 : 0.5, stop : 0
|
background: qlineargradient(spread : pad, x1 : 0, y1 : 0, x2 : 0, y2 : 0.5, stop : 0
|
||||||
palette(window), stop:1 palette(light));
|
palette(window), stop:1 palette(light));
|
||||||
/*background: palette(highlight);*/
|
/*background: palette(highlight);*/
|
||||||
}
|
}
|
||||||
|
|
||||||
ads--CDockWidgetTab QLabel {
|
ads--CDockWidgetTab QLabel {
|
||||||
color: palette(dark);
|
color: palette(dark);
|
||||||
}
|
}
|
||||||
|
|
||||||
ads--CDockWidgetTab[activeTab="true"] QLabel {
|
ads--CDockWidgetTab[activeTab="true"] QLabel {
|
||||||
color: palette(foreground);
|
color: palette(foreground);
|
||||||
}
|
}
|
||||||
|
|
||||||
ads--CDockWidget {
|
ads--CDockWidget {
|
||||||
background: palette(light);
|
background: palette(light);
|
||||||
border-color: palette(light);
|
border-color: palette(light);
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-width: 1px 0 0 0;
|
border-width: 1px 0 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
ads--CTitleBarButton {
|
ads--CTitleBarButton {
|
||||||
padding: 0px 0px;
|
padding: 0px 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
QScrollArea#dockWidgetScrollArea {
|
QScrollArea#dockWidgetScrollArea {
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#dockAreaCloseButton {
|
#dockAreaCloseButton {
|
||||||
qproperty-icon: url(:/ads/images/close-button.svg),
|
qproperty-icon: url(:/ads/images/close-button.svg),
|
||||||
url(:/ads/images/close-button-disabled.svg) disabled;
|
url(:/ads/images/close-button-disabled.svg) disabled;
|
||||||
qproperty-iconSize: 16px;
|
qproperty-iconSize: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#detachGroupButton {
|
#detachGroupButton {
|
||||||
qproperty-icon: url(:/ads/images/detach-button.svg),
|
qproperty-icon: url(:/ads/images/detach-button.svg),
|
||||||
url(:/ads/images/detach-button-disabled.svg) disabled;
|
url(:/ads/images/detach-button-disabled.svg) disabled;
|
||||||
qproperty-iconSize: 16px;
|
qproperty-iconSize: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#tabCloseButton {
|
#tabCloseButton {
|
||||||
margin-top: 2px;
|
margin-top: 2px;
|
||||||
background: none;
|
background: none;
|
||||||
border: none;
|
border: none;
|
||||||
padding: 0px -2px;
|
padding: 0px -2px;
|
||||||
qproperty-icon: url(:/ads/images/close-button.svg),
|
qproperty-icon: url(:/ads/images/close-button.svg),
|
||||||
url(:/ads/images/close-button-disabled.svg) disabled;
|
url(:/ads/images/close-button-disabled.svg) disabled;
|
||||||
qproperty-iconSize: 16px;
|
qproperty-iconSize: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#tabCloseButton:hover {
|
#tabCloseButton:hover {
|
||||||
/*border: 1px solid rgba(0, 0, 0, 32);*/
|
/*border: 1px solid rgba(0, 0, 0, 32);*/
|
||||||
background: rgba(0, 0, 0, 24);
|
background: rgba(0, 0, 0, 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
#tabCloseButton:pressed {
|
#tabCloseButton:pressed {
|
||||||
background: rgba(0, 0, 0, 48);
|
background: rgba(0, 0, 0, 48);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -96,48 +96,48 @@ QScrollArea#dockWidgetScrollArea {
|
|||||||
|
|
||||||
/* Focus related styling */
|
/* Focus related styling */
|
||||||
ads--CDockWidgetTab[focused="true"] {
|
ads--CDockWidgetTab[focused="true"] {
|
||||||
background: palette(highlight);
|
background: palette(highlight);
|
||||||
border-color: palette(highlight);
|
border-color: palette(highlight);
|
||||||
}
|
}
|
||||||
|
|
||||||
ads--CDockWidgetTab[focused="true"]>#tabCloseButton {
|
ads--CDockWidgetTab[focused="true"]>#tabCloseButton {
|
||||||
qproperty-icon: url(:/ads/images/close-button-focused.svg)
|
qproperty-icon: url(:/ads/images/close-button-focused.svg)
|
||||||
}
|
}
|
||||||
|
|
||||||
ads--CDockWidgetTab[focused="true"]>#tabCloseButton:hover {
|
ads--CDockWidgetTab[focused="true"]>#tabCloseButton:hover {
|
||||||
background: rgba(255, 255, 255, 48);
|
background: rgba(255, 255, 255, 48);
|
||||||
}
|
}
|
||||||
|
|
||||||
ads--CDockWidgetTab[focused="true"]>#tabCloseButton:pressed {
|
ads--CDockWidgetTab[focused="true"]>#tabCloseButton:pressed {
|
||||||
background: rgba(255, 255, 255, 92);
|
background: rgba(255, 255, 255, 92);
|
||||||
}
|
}
|
||||||
|
|
||||||
ads--CDockWidgetTab[focused="true"] QLabel {
|
ads--CDockWidgetTab[focused="true"] QLabel {
|
||||||
color: palette(light);
|
color: palette(light);
|
||||||
}
|
}
|
||||||
|
|
||||||
ads--CDockAreaTitleBar {
|
ads--CDockAreaTitleBar {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border-bottom: 2px solid palette(light);
|
border-bottom: 2px solid palette(light);
|
||||||
padding-bottom: 0px;
|
padding-bottom: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
ads--CDockAreaWidget[focused="true"] ads--CDockAreaTitleBar {
|
ads--CDockAreaWidget[focused="true"] ads--CDockAreaTitleBar {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border-bottom: 2px solid palette(highlight);
|
border-bottom: 2px solid palette(highlight);
|
||||||
padding-bottom: 0px;
|
padding-bottom: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ads--CFloatingWidgetTitleBar {
|
ads--CFloatingWidgetTitleBar {
|
||||||
background: palette(midlight);
|
|
||||||
qproperty-maximizeIcon: url(:/ads/images/maximize-button.svg);
|
qproperty-maximizeIcon: url(:/ads/images/maximize-button.svg);
|
||||||
qproperty-normalIcon: url(:/ads/images/restore-button.svg);
|
qproperty-normalIcon: url(:/ads/images/restore-button.svg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* does not properly work on KDE
|
||||||
ads--CFloatingDockContainer[isActiveWindow="true"] ads--CFloatingWidgetTitleBar {
|
ads--CFloatingDockContainer[isActiveWindow="true"] ads--CFloatingWidgetTitleBar {
|
||||||
background: palette(highlight);
|
background: palette(highlight);
|
||||||
qproperty-maximizeIcon: url(:/ads/images/maximize-button-focused.svg);
|
qproperty-maximizeIcon: url(:/ads/images/maximize-button-focused.svg);
|
||||||
qproperty-normalIcon: url(:/ads/images/restore-button-focused.svg);
|
qproperty-normalIcon: url(:/ads/images/restore-button-focused.svg);
|
||||||
}
|
}
|
||||||
@ -145,11 +145,12 @@ ads--CFloatingDockContainer[isActiveWindow="true"] ads--CFloatingWidgetTitleBar
|
|||||||
ads--CFloatingDockContainer[isActiveWindow="true"] #floatingTitleLabel {
|
ads--CFloatingDockContainer[isActiveWindow="true"] #floatingTitleLabel {
|
||||||
color: palette(light);
|
color: palette(light);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
#floatingTitleCloseButton, #floatingTitleMaximizeButton {
|
#floatingTitleCloseButton, #floatingTitleMaximizeButton {
|
||||||
qproperty-iconSize: 16px;
|
qproperty-iconSize: 16px;
|
||||||
border: none;
|
border: none;
|
||||||
margin: 3px;
|
margin: 6px 3px 6px 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -174,6 +175,7 @@ ads--CFloatingDockContainer[isActiveWindow="true"] #floatingTitleMaximizeButton
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* does not properly work on KDE
|
||||||
ads--CFloatingDockContainer[isActiveWindow="true"] #floatingTitleCloseButton {
|
ads--CFloatingDockContainer[isActiveWindow="true"] #floatingTitleCloseButton {
|
||||||
qproperty-icon: url(:/ads/images/close-button-focused.svg);
|
qproperty-icon: url(:/ads/images/close-button-focused.svg);
|
||||||
qproperty-iconSize: 16px;
|
qproperty-iconSize: 16px;
|
||||||
@ -189,3 +191,4 @@ ads--CFloatingDockContainer[isActiveWindow="true"] #floatingTitleCloseButton:pre
|
|||||||
ads--CFloatingDockContainer[isActiveWindow="true"] #floatingTitleMaximizeButton:pressed {
|
ads--CFloatingDockContainer[isActiveWindow="true"] #floatingTitleMaximizeButton:pressed {
|
||||||
background: rgba(255, 255, 255, 92);
|
background: rgba(255, 255, 255, 92);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user