mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-25 18:25:42 +08:00
Some fixes / tweaks found during testing
* clear setup URLs * renamed to CInfoArea::connectTopLevelChanged() * qss, margins for menu items
This commit is contained in:
committed by
Mathew Sutcliffe
parent
8f33896e1c
commit
bf9ea12a2b
@@ -65,6 +65,8 @@ namespace BlackCore
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
this->m_bootstrapUrls.clear(); // clean up previous values
|
||||||
|
|
||||||
// web URL
|
// web URL
|
||||||
if (!this->m_bootsrapUrlFileValue.isEmpty())
|
if (!this->m_bootsrapUrlFileValue.isEmpty())
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ namespace BlackGui
|
|||||||
|
|
||||||
this->ps_setDockArea(Qt::TopDockWidgetArea);
|
this->ps_setDockArea(Qt::TopDockWidgetArea);
|
||||||
this->iniFileBasedSettings();
|
this->iniFileBasedSettings();
|
||||||
this->connectAllWidgets();
|
this->connectTopLevelChanged();
|
||||||
this->setFeaturesForDockableWidgets(QDockWidget::DockWidgetFloatable | QDockWidget::DockWidgetMovable | QDockWidget::DockWidgetClosable);
|
this->setFeaturesForDockableWidgets(QDockWidget::DockWidgetFloatable | QDockWidget::DockWidgetMovable | QDockWidget::DockWidgetClosable);
|
||||||
this->tabifyAllWidgets();
|
this->tabifyAllWidgets();
|
||||||
|
|
||||||
@@ -522,7 +522,7 @@ namespace BlackGui
|
|||||||
return areaIndex >= 0 && areaIndex < this->m_dockWidgetInfoAreas.size();
|
return areaIndex >= 0 && areaIndex < this->m_dockWidgetInfoAreas.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CInfoArea::connectAllWidgets()
|
void CInfoArea::connectTopLevelChanged()
|
||||||
{
|
{
|
||||||
for (CDockWidgetInfoArea *dw : this->m_dockWidgetInfoAreas)
|
for (CDockWidgetInfoArea *dw : this->m_dockWidgetInfoAreas)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -189,7 +189,7 @@ namespace BlackGui
|
|||||||
void setTabPixmaps();
|
void setTabPixmaps();
|
||||||
|
|
||||||
//! Connect all widgets
|
//! Connect all widgets
|
||||||
void connectAllWidgets();
|
void connectTopLevelChanged();
|
||||||
|
|
||||||
//! Margins for the floating widgets
|
//! Margins for the floating widgets
|
||||||
void setMarginsWhenFloating(int left, int top, int right, int bottom);
|
void setMarginsWhenFloating(int left, int top, int right, int bottom);
|
||||||
|
|||||||
@@ -333,13 +333,13 @@ QColorDialog {
|
|||||||
QMenuBar {
|
QMenuBar {
|
||||||
background-image: url(:/textures/icons/textures/texture-outer.jpg);
|
background-image: url(:/textures/icons/textures/texture-outer.jpg);
|
||||||
background-color: darkslategray;
|
background-color: darkslategray;
|
||||||
padding: 0px 0px 0px 10px;
|
padding: 5px 0px 0px 10px;
|
||||||
margin: 0px 0px 20px 0px; /* removes overlapping bar in frameless mode, why bottom margin helps here, no idea, bug? */
|
margin: 0px 0px 20px 0px; /* removes overlapping bar in frameless mode, why bottom margin helps here, no idea, bug? */
|
||||||
}
|
}
|
||||||
|
|
||||||
QMenuBar::item {
|
QMenuBar::item {
|
||||||
spacing: 3px; /* spacing between menu bar items */
|
spacing: 5px; /* spacing between menu bar items */
|
||||||
padding: 1px 4px;
|
padding: 3px 3px;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
@@ -356,7 +356,11 @@ QMenu {
|
|||||||
border: 2px solid darkslategray; /* reserve space for selection border */
|
border: 2px solid darkslategray; /* reserve space for selection border */
|
||||||
background: lightgray;
|
background: lightgray;
|
||||||
color: black;
|
color: black;
|
||||||
padding: 2px;
|
padding: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QMenu::item {
|
||||||
|
padding: 4px 25px 4px 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
QScrollArea {
|
QScrollArea {
|
||||||
|
|||||||
Reference in New Issue
Block a user