mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2025-01-12 16:20:25 +08:00
Fixed build issues and improved styling
Improved styling of close buttons and focused close buttons
This commit is contained in:
parent
0227bd1786
commit
a9268e6bf7
@ -24,6 +24,10 @@
|
|||||||
#include "DockManager.h"
|
#include "DockManager.h"
|
||||||
#include "DockAreaTitleBar.h"
|
#include "DockAreaTitleBar.h"
|
||||||
|
|
||||||
|
#ifdef Q_OS_LINUX
|
||||||
|
#include "linux/FloatingWidgetTitleBar.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace ads
|
namespace ads
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
@ -34,6 +38,9 @@ struct DockFocusControllerPrivate
|
|||||||
CDockFocusController *_this;
|
CDockFocusController *_this;
|
||||||
QPointer<CDockWidget> FocusedDockWidget = nullptr;
|
QPointer<CDockWidget> FocusedDockWidget = nullptr;
|
||||||
QPointer<CDockAreaWidget> FocusedArea = nullptr;
|
QPointer<CDockAreaWidget> FocusedArea = nullptr;
|
||||||
|
#ifdef Q_OS_LINUX
|
||||||
|
QPointer<CFloatingDockContainer> FloatingWidget = nullptr;
|
||||||
|
#endif
|
||||||
CDockManager* DockManager;
|
CDockManager* DockManager;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -810,7 +810,7 @@ void CFloatingDockContainer::showEvent(QShowEvent *event)
|
|||||||
{
|
{
|
||||||
Super::showEvent(event);
|
Super::showEvent(event);
|
||||||
#ifdef Q_OS_LINUX
|
#ifdef Q_OS_LINUX
|
||||||
if (CDockManager::testConfigFlag(CDockManager::FocusStyling))
|
if (CDockManager::testConfigFlag(CDockManager::FocusHighlighting))
|
||||||
{
|
{
|
||||||
this->window()->activateWindow();
|
this->window()->activateWindow();
|
||||||
}
|
}
|
||||||
|
@ -84,13 +84,19 @@ QScrollArea#dockWidgetScrollArea
|
|||||||
|
|
||||||
#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, 16);
|
background: rgba(0, 0, 0, 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
#tabCloseButton:pressed
|
#tabCloseButton:pressed
|
||||||
{
|
{
|
||||||
background: rgba(0, 0, 0, 32);
|
background: rgba(0, 0, 0, 48);
|
||||||
|
}
|
||||||
|
|
||||||
|
#tabCloseButton
|
||||||
|
{
|
||||||
|
qproperty-icon: url(:/ads/images/close-button.svg);
|
||||||
|
qproperty-iconSize: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Focus related styling */
|
/* Focus related styling */
|
||||||
@ -100,6 +106,24 @@ ads--CDockWidgetTab[focused="true"]
|
|||||||
border-color: 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
|
ads--CDockWidgetTab[focused="true"] QLabel
|
||||||
{
|
{
|
||||||
color: palette(light);
|
color: palette(light);
|
||||||
|
Loading…
Reference in New Issue
Block a user