mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2025-02-05 10:36:47 +08:00
caa1a9f330
Updated stylesheet to use svg icon for close button instead of system icon
154 lines
2.6 KiB
CSS
154 lines
2.6 KiB
CSS
|
|
/*
|
|
* Default style sheet on Linux Platforms with focus highlighting flag enabled
|
|
*/
|
|
|
|
ads--CDockContainerWidget
|
|
{
|
|
background: palette(dark);
|
|
}
|
|
|
|
ads--CDockContainerWidget QSplitter::handle
|
|
{
|
|
background: palette(dark);
|
|
}
|
|
|
|
ads--CDockAreaWidget
|
|
{
|
|
background: palette(window);
|
|
border: 1px solid white;
|
|
}
|
|
|
|
ads--CDockAreaWidget #tabsMenuButton::menu-indicator
|
|
{
|
|
image: none;
|
|
}
|
|
|
|
|
|
ads--CDockWidgetTab
|
|
{
|
|
background: palette(window);
|
|
border-color: palette(light);
|
|
border-style: solid;
|
|
border-width: 0 1px 0 0;
|
|
padding: 0 0px;
|
|
}
|
|
|
|
ads--CDockWidgetTab[activeTab="true"]
|
|
{
|
|
background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:0.5, stop:0 palette(window), stop:1 palette(light));
|
|
/*background: palette(highlight);*/
|
|
}
|
|
|
|
ads--CDockWidgetTab QLabel
|
|
{
|
|
color: palette(dark);
|
|
}
|
|
|
|
ads--CDockWidgetTab[activeTab="true"] QLabel
|
|
{
|
|
color: palette(foreground);
|
|
}
|
|
|
|
ads--CDockWidget
|
|
{
|
|
background: palette(light);
|
|
border-color: palette(light);
|
|
border-style: solid;
|
|
border-width: 1px 0 0 0;
|
|
}
|
|
|
|
|
|
ads--CTitleBarButton
|
|
{
|
|
padding: 0px 0px;
|
|
}
|
|
|
|
|
|
|
|
QScrollArea#dockWidgetScrollArea
|
|
{
|
|
padding: 0px;
|
|
border: none;
|
|
}
|
|
|
|
|
|
#tabCloseButton
|
|
{
|
|
margin-top: 2px;
|
|
background: none;
|
|
border: none;
|
|
padding: 0px -2px;
|
|
qproperty-icon: url(:/ads/images/close-button.svg);
|
|
qproperty-iconSize: 16px;
|
|
}
|
|
|
|
#tabCloseButton:hover
|
|
{
|
|
/*border: 1px solid rgba(0, 0, 0, 32);*/
|
|
background: rgba(0, 0, 0, 24);
|
|
}
|
|
|
|
#tabCloseButton:pressed
|
|
{
|
|
background: rgba(0, 0, 0, 48);
|
|
}
|
|
|
|
|
|
/* Focus related styling */
|
|
ads--CDockWidgetTab[focused="true"]
|
|
{
|
|
background: palette(highlight);
|
|
border-color: palette(highlight);
|
|
}
|
|
|
|
ads--CDockWidgetTab[focused="true"] > #tabCloseButton
|
|
{
|
|
qproperty-icon: url(:/ads/images/close-button-focused.svg)
|
|
}
|
|
|
|
|
|
|
|
ads--CDockWidgetTab[focused="true"] > #tabCloseButton:hover
|
|
{
|
|
background: rgba(255, 255, 255, 48);
|
|
}
|
|
|
|
|
|
ads--CDockWidgetTab[focused="true"] > #tabCloseButton:pressed
|
|
{
|
|
background: rgba(255, 255, 255, 92);
|
|
}
|
|
|
|
ads--CDockWidgetTab[focused="true"] QLabel
|
|
{
|
|
color: palette(light);
|
|
}
|
|
|
|
|
|
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;
|
|
}
|
|
|
|
|
|
ads--CFloatingDockContainer[isActiveWindow="true"] ads--CFloatingWidgetTitleBar
|
|
{
|
|
background: palette(highlight);
|
|
}
|
|
|
|
|
|
ads--CFloatingDockContainer[isActiveWindow="true"] ads--CFloatingWidgetTitleBar > QLabel
|
|
{
|
|
color: palette(light);
|
|
}
|