#0 [UI] UI styles
@ -5,7 +5,7 @@
|
|||||||
width="451.847px" height="451.847px" viewBox="0 0 451.847 451.847" style="enable-background:new 0 0 451.847 451.847;"
|
width="451.847px" height="451.847px" viewBox="0 0 451.847 451.847" style="enable-background:new 0 0 451.847 451.847;"
|
||||||
xml:space="preserve">
|
xml:space="preserve">
|
||||||
<g>
|
<g>
|
||||||
<path fill="#807070" d="M225.923,354.706c-8.098,0-16.195-3.092-22.369-9.263L9.27,151.157c-12.359-12.359-12.359-32.397,0-44.751
|
<path fill="#3297FD" d="M225.923,354.706c-8.098,0-16.195-3.092-22.369-9.263L9.27,151.157c-12.359-12.359-12.359-32.397,0-44.751
|
||||||
c12.354-12.354,32.388-12.354,44.748,0l171.905,171.915l171.906-171.909c12.359-12.354,32.391-12.354,44.744,0
|
c12.354-12.354,32.388-12.354,44.748,0l171.905,171.915l171.906-171.909c12.359-12.354,32.391-12.354,44.744,0
|
||||||
c12.365,12.354,12.365,32.392,0,44.751L248.292,345.449C242.115,351.621,234.018,354.706,225.923,354.706z"/>
|
c12.365,12.354,12.365,32.392,0,44.751L248.292,345.449C242.115,351.621,234.018,354.706,225.923,354.706z"/>
|
||||||
</g>
|
</g>
|
||||||
|
Before Width: | Height: | Size: 868 B After Width: | Height: | Size: 868 B |
@ -5,7 +5,7 @@
|
|||||||
width="451.847px" height="451.846px" viewBox="0 0 451.847 451.846" style="enable-background:new 0 0 451.847 451.846;"
|
width="451.847px" height="451.846px" viewBox="0 0 451.847 451.846" style="enable-background:new 0 0 451.847 451.846;"
|
||||||
xml:space="preserve">
|
xml:space="preserve">
|
||||||
<g>
|
<g>
|
||||||
<path fill="#807070" d="M248.292,106.406l194.281,194.29c12.365,12.359,12.365,32.391,0,44.744c-12.354,12.354-32.391,12.354-44.744,0
|
<path fill="#3297FD" d="M248.292,106.406l194.281,194.29c12.365,12.359,12.365,32.391,0,44.744c-12.354,12.354-32.391,12.354-44.744,0
|
||||||
L225.923,173.529L54.018,345.44c-12.36,12.354-32.395,12.354-44.748,0c-12.359-12.354-12.359-32.391,0-44.75L203.554,106.4
|
L225.923,173.529L54.018,345.44c-12.36,12.354-32.395,12.354-44.748,0c-12.359-12.354-12.359-32.391,0-44.75L203.554,106.4
|
||||||
c6.18-6.174,14.271-9.259,22.369-9.259C234.018,97.141,242.115,100.232,248.292,106.406z"/>
|
c6.18-6.174,14.271-9.259,22.369-9.259C234.018,97.141,242.115,100.232,248.292,106.406z"/>
|
||||||
</g>
|
</g>
|
||||||
|
Before Width: | Height: | Size: 867 B After Width: | Height: | Size: 867 B |
@ -3,6 +3,6 @@
|
|||||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||||
viewBox="0 0 426.667 426.667" style="enable-background:new 0 0 426.667 426.667;" xml:space="preserve">
|
viewBox="0 0 426.667 426.667" style="enable-background:new 0 0 426.667 426.667;" xml:space="preserve">
|
||||||
<g>
|
<g>
|
||||||
<polygon fill="#98CE98" points="293.333,135.04 190.08,240.213 137.173,187.093 108.8,215.467 192.213,298.667 326.187,168.747"/>
|
<polygon fill="#a4a4a4" points="293.333,135.04 190.08,240.213 137.173,187.093 108.8,215.467 192.213,298.667 326.187,168.747"/>
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
|
Before Width: | Height: | Size: 514 B After Width: | Height: | Size: 514 B |
@ -2,6 +2,6 @@
|
|||||||
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||||
width="64px" height="64px" viewBox="0 0 64 64" style="enable-background:new 0 0 64 64;" xml:space="preserve">
|
width="64px" height="64px" viewBox="0 0 64 64" style="enable-background:new 0 0 64 64;" xml:space="preserve">
|
||||||
<g>
|
<g>
|
||||||
<rect fill="#98CE98" x="16" y="16" width="32" height="32"/>
|
<rect fill="#a4a4a4" x="16" y="16" width="32" height="32"/>
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
|
Before Width: | Height: | Size: 358 B After Width: | Height: | Size: 358 B |
@ -2,6 +2,6 @@
|
|||||||
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||||
width="64px" height="64px" viewBox="0 0 64 64" style="enable-background:new 0 0 64 64;" xml:space="preserve">
|
width="64px" height="64px" viewBox="0 0 64 64" style="enable-background:new 0 0 64 64;" xml:space="preserve">
|
||||||
<g>
|
<g>
|
||||||
<rect fill="#237423" x="16" y="16" width="32" height="32"/>
|
<rect fill="#ffffff" x="16" y="16" width="32" height="32"/>
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
|
Before Width: | Height: | Size: 358 B After Width: | Height: | Size: 358 B |
@ -3,6 +3,6 @@
|
|||||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||||
viewBox="0 0 426.667 426.667" style="enable-background:new 0 0 426.667 426.667;" xml:space="preserve">
|
viewBox="0 0 426.667 426.667" style="enable-background:new 0 0 426.667 426.667;" xml:space="preserve">
|
||||||
<g>
|
<g>
|
||||||
<polygon fill="#237423" points="293.333,135.04 190.08,240.213 137.173,187.093 108.8,215.467 192.213,298.667 326.187,168.747"/>
|
<polygon fill="#ffffff" points="293.333,135.04 190.08,240.213 137.173,187.093 108.8,215.467 192.213,298.667 326.187,168.747"/>
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
|
Before Width: | Height: | Size: 514 B After Width: | Height: | Size: 514 B |
@ -2,6 +2,6 @@
|
|||||||
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||||
width="64px" height="64px" viewBox="0 0 64 64" style="enable-background:new 0 0 64 64;" xml:space="preserve">
|
width="64px" height="64px" viewBox="0 0 64 64" style="enable-background:new 0 0 64 64;" xml:space="preserve">
|
||||||
<g>
|
<g>
|
||||||
<circle fill="#98CE98" cx="32" cy="32" r="16"/>
|
<circle fill="#B4D5FE" cx="32" cy="32" r="16"/>
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
|
Before Width: | Height: | Size: 346 B After Width: | Height: | Size: 346 B |
@ -2,6 +2,6 @@
|
|||||||
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||||
width="64px" height="64px" viewBox="0 0 64 64" style="enable-background:new 0 0 64 64;" xml:space="preserve">
|
width="64px" height="64px" viewBox="0 0 64 64" style="enable-background:new 0 0 64 64;" xml:space="preserve">
|
||||||
<g>
|
<g>
|
||||||
<circle fill="#237423" cx="32" cy="32" r="16"/>
|
<circle fill="#3297FD" cx="32" cy="32" r="16"/>
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
|
Before Width: | Height: | Size: 346 B After Width: | Height: | Size: 346 B |
@ -160,39 +160,38 @@ inline void loadTheme(const QString& _theme)
|
|||||||
if (!style.isEmpty())
|
if (!style.isEmpty())
|
||||||
{
|
{
|
||||||
// Find font family
|
// Find font family
|
||||||
const auto fontFamilyString = QRegularExpression("font-family:.*;").match(style).captured();
|
const auto fontMatch = QRegularExpression("font-family:\\s*\\\"(.*)\\\"\\s*;").match(style);
|
||||||
|
const auto fontFamily = fontMatch.hasMatch() ? fontMatch.captured(fontMatch.lastCapturedIndex()) : QString("DejaVu Sans");
|
||||||
|
//QMessageBox::information(nullptr, "Found font family", fontFamily);
|
||||||
|
|
||||||
// Calculate point size using current font
|
// Calculate point size using current font
|
||||||
auto dummy = new QWidget();
|
const auto pointSizeF = QFontMetricsF(QFont(fontFamily, 100)).height() * 1e-2;
|
||||||
dummy->setStyleSheet(QString("QWidget { %1\nfont-size: 100pt; }").arg(fontFamilyString));
|
//QMessageBox::information(nullptr, "Point size", QString("100pt = %1\n1pt = %2").arg(pointSizeF * 1e2).arg(pointSizeF));
|
||||||
dummy->show(); // actual font become valid only after widget showEvent
|
|
||||||
const auto pointSizeF = QFontMetricsF(dummy->font()).height() * 1e-2;
|
|
||||||
delete dummy;
|
|
||||||
|
|
||||||
//QMessageBox::information(nullptr, "asfdasf", QString("100pt = %1 = %2").arg(pointSizeF * 1e2).arg((int)(pointSizeF * 1e2 + 0.5)));
|
|
||||||
|
|
||||||
// Find and convert all sizes from points to pixels
|
// Find and convert all sizes from points to pixels
|
||||||
QRegularExpression re("(\\d+\\.?\\d*)ex");
|
QRegularExpression re("(\\d+\\.?\\d*)ex");
|
||||||
auto it = re.globalMatch(style);
|
auto it = re.globalMatch(style);
|
||||||
|
|
||||||
QSet<QString> matchedTexts;
|
std::vector<QStringList> matches;
|
||||||
std::vector<QStringList> all;
|
|
||||||
while (it.hasNext())
|
|
||||||
{
|
{
|
||||||
const auto match = it.next();
|
QSet<QString> uniqueMatches;
|
||||||
if (!matchedTexts.contains(match.captured()))
|
while (it.hasNext())
|
||||||
{
|
{
|
||||||
matchedTexts.insert(match.captured());
|
const auto match = it.next();
|
||||||
all.emplace_back(match.capturedTexts());
|
if (!uniqueMatches.contains(match.captured()))
|
||||||
|
{
|
||||||
|
uniqueMatches.insert(match.captured());
|
||||||
|
matches.emplace_back(match.capturedTexts());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const auto& match : all)
|
for (const auto& capturedTexts : matches)
|
||||||
{
|
{
|
||||||
const auto pt = match.back().toDouble();
|
const auto pt = capturedTexts.back().toDouble();
|
||||||
const int pixels = static_cast<int>(pointSizeF * pt + 0.5);
|
const int pixels = static_cast<int>(pointSizeF * pt + 0.5);
|
||||||
//QMessageBox::information(nullptr, "bbb", QString("Replacing %1\nwith\n%2\n\npt = %3").arg(match.front()).arg(QString("%1px").arg(pixels)).arg(pt));
|
//QMessageBox::information(nullptr, "Style-sheet modification", QString("Replacing '%1'\nwith\n'%2px'\n\npt count: %3").arg(capturedTexts.front()).arg(pixels).arg(pt));
|
||||||
style.replace(match.front(), QString("%1px").arg(pixels));
|
style.replace(capturedTexts.front(), QString("%1px").arg(pixels));
|
||||||
}
|
}
|
||||||
|
|
||||||
qApp->setStyleSheet(style);
|
qApp->setStyleSheet(style);
|
||||||
@ -271,8 +270,10 @@ void MainWindow::configureSizes()
|
|||||||
const auto updateFont = [&] (QFont& font)
|
const auto updateFont = [&] (QFont& font)
|
||||||
{
|
{
|
||||||
font.setFamily(fontFamily);
|
font.setFamily(fontFamily);
|
||||||
font.setPixelSize(pixelSize);
|
if (pixelSize >= 0)
|
||||||
font.setPointSize(pointSize);
|
font.setPixelSize(pixelSize);
|
||||||
|
if (pointSize >= 0)
|
||||||
|
font.setPointSize(pointSize);
|
||||||
};
|
};
|
||||||
|
|
||||||
auto& fonts = EASY_GLOBALS.font;
|
auto& fonts = EASY_GLOBALS.font;
|
||||||
|
@ -7,477 +7,389 @@
|
|||||||
* *
|
* *
|
||||||
***********************************/
|
***********************************/
|
||||||
* {
|
* {
|
||||||
font-family: "DejaVu Sans";
|
font-family: "DejaVu Sans";
|
||||||
font-size: 10pt;
|
font-size: 10pt;
|
||||||
color: #504040;
|
color: #504040; }
|
||||||
}
|
|
||||||
|
|
||||||
*:disabled {
|
*:disabled {
|
||||||
color: #c4c4c4;
|
color: #c4c4c4; }
|
||||||
}
|
|
||||||
|
|
||||||
RoundProgressIndicator {
|
RoundProgressIndicator {
|
||||||
qproperty-color: #3297FD;
|
qproperty-color: #3297FD;
|
||||||
qproperty-background: #c4c4c4;
|
qproperty-background: #c4c4c4;
|
||||||
background: transparent;
|
background: transparent; }
|
||||||
}
|
|
||||||
|
|
||||||
MainWindow, QToolBar, QDialog {
|
MainWindow, QToolBar, QDialog {
|
||||||
background-color: #f8f2f2;
|
background-color: #f8f2f2; }
|
||||||
}
|
|
||||||
|
|
||||||
QToolTip {
|
QToolTip {
|
||||||
background-color: #ffeccc;
|
background-color: #ffeccc;
|
||||||
border: 1px solid #c4c4c4;
|
border: 1px solid #c4c4c4;
|
||||||
color: #504040;
|
color: #504040; }
|
||||||
}
|
|
||||||
|
|
||||||
ArbitraryValueToolTip {
|
ArbitraryValueToolTip {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
border: none;
|
border: none;
|
||||||
background-color: #ffeccc;
|
background-color: #ffeccc; }
|
||||||
}
|
ArbitraryValueToolTip QWidget#cnt {
|
||||||
|
border: 1px solid #c4c4c4;
|
||||||
ArbitraryValueToolTip QWidget#cnt {
|
background-color: transparent;
|
||||||
border: 1px solid #c4c4c4;
|
margin: 0; }
|
||||||
background-color: transparent;
|
ArbitraryValueToolTip QLabel {
|
||||||
margin: 0;
|
background-color: transparent;
|
||||||
}
|
border: none;
|
||||||
|
color: #504040; }
|
||||||
ArbitraryValueToolTip QLabel {
|
ArbitraryValueToolTip QTextEdit {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border: none;
|
border: none;
|
||||||
color: #504040;
|
color: #504040;
|
||||||
}
|
selection-color: white;
|
||||||
|
selection-background-color: #3297FD; }
|
||||||
ArbitraryValueToolTip QTextEdit {
|
|
||||||
background-color: transparent;
|
|
||||||
border: none;
|
|
||||||
color: #504040;
|
|
||||||
selection-color: white;
|
|
||||||
selection-background-color: #3297FD;
|
|
||||||
}
|
|
||||||
|
|
||||||
QWidget#DiagramPopup, QWidget#ThreadsPopup {
|
QWidget#DiagramPopup, QWidget#ThreadsPopup {
|
||||||
background-color: #ffeccc;
|
background-color: #ffeccc;
|
||||||
border: 1px solid #c4c4c4;
|
border: 1px solid #c4c4c4; }
|
||||||
}
|
|
||||||
|
|
||||||
QGraphicsView {
|
QGraphicsView {
|
||||||
border: 1px solid #c4c4c4;
|
border: 1px solid #c4c4c4; }
|
||||||
}
|
|
||||||
|
|
||||||
QSplitter::handle:hover {
|
QSplitter::handle:hover {
|
||||||
background-color: #3297FD;
|
background-color: #3297FD; }
|
||||||
}
|
|
||||||
|
|
||||||
QSplitter::handle:pressed {
|
QSplitter::handle:pressed {
|
||||||
background-color: #0264c7;
|
background-color: #0264c7; }
|
||||||
}
|
|
||||||
|
|
||||||
QLabel#BlocksTreeWidget_HintLabel {
|
QLabel#BlocksTreeWidget_HintLabel {
|
||||||
color: gray;
|
color: gray;
|
||||||
font-size: 13pt;
|
font-size: 13pt; }
|
||||||
}
|
|
||||||
|
|
||||||
/* ****************************************************************************************************************** */
|
/* ****************************************************************************************************************** */
|
||||||
QLineEdit, QSpinBox {
|
QLineEdit, QSpinBox {
|
||||||
border: 1px solid #c4c4c4;
|
border: 1px solid #c4c4c4;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
selection-background-color: #3297FD;
|
selection-background-color: #3297FD;
|
||||||
selection-color: white;
|
selection-color: white;
|
||||||
height: 15ex;
|
height: 15ex; }
|
||||||
}
|
|
||||||
|
|
||||||
QComboBox {
|
QComboBox {
|
||||||
border: 1px solid #c4c4c4;
|
border: 1px solid #c4c4c4;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
selection-background-color: #B4D5FE;
|
selection-background-color: #B4D5FE;
|
||||||
selection-color: #504040;
|
selection-color: #504040;
|
||||||
height: 15ex;
|
height: 15ex;
|
||||||
padding-right: 11ex;
|
padding-right: 11ex; }
|
||||||
}
|
|
||||||
|
|
||||||
QLineEdit:disabled, QComboBox:disabled, QSpinBox:disabled {
|
QLineEdit:disabled, QComboBox:disabled, QSpinBox:disabled {
|
||||||
background-color: #f0f0f0;
|
background-color: #f0f0f0;
|
||||||
color: #c4c4c4;
|
color: #c4c4c4;
|
||||||
selection-background-color: #B4D5FE;
|
selection-background-color: #B4D5FE;
|
||||||
selection-color: #c4c4c4;
|
selection-color: #c4c4c4; }
|
||||||
}
|
|
||||||
|
|
||||||
QLineEdit:focus {
|
QLineEdit:focus {
|
||||||
border: 1px solid #3297FD;
|
border: 1px solid #3297FD; }
|
||||||
}
|
|
||||||
|
|
||||||
/* ****************************************************************************************************************** */
|
/* ****************************************************************************************************************** */
|
||||||
QComboBox::drop-down {
|
QComboBox::drop-down {
|
||||||
subcontrol-origin: border;
|
subcontrol-origin: border;
|
||||||
subcontrol-position: center right;
|
subcontrol-position: center right;
|
||||||
border: none;
|
border: none;
|
||||||
width: 10ex;
|
width: 10ex; }
|
||||||
}
|
|
||||||
|
|
||||||
QComboBox::down-arrow {
|
QComboBox::down-arrow {
|
||||||
image: url(":/images/default/arrow-down");
|
image: url(":/images/default/arrow-down");
|
||||||
width: 5ex;
|
width: 5ex;
|
||||||
height: 5ex;
|
height: 5ex; }
|
||||||
}
|
|
||||||
|
|
||||||
QComboBox::down-arrow:hover {
|
QComboBox::down-arrow:hover {
|
||||||
image: url(":/images/default/arrow-down-hover");
|
image: url(":/images/default/arrow-down-hover"); }
|
||||||
}
|
|
||||||
|
|
||||||
QComboBox::down-arrow:disabled {
|
QComboBox::down-arrow:disabled {
|
||||||
image: url(":/images/default/arrow-down-disabled");
|
image: url(":/images/default/arrow-down-disabled"); }
|
||||||
}
|
|
||||||
|
|
||||||
/* ****************************************************************************************************************** */
|
/* ****************************************************************************************************************** */
|
||||||
QSpinBox::up-button {
|
QSpinBox::up-button {
|
||||||
subcontrol-origin: padding;
|
subcontrol-origin: padding;
|
||||||
subcontrol-position: top right;
|
subcontrol-position: top right;
|
||||||
border: none;
|
border: none;
|
||||||
width: 10ex;
|
width: 10ex; }
|
||||||
}
|
|
||||||
|
|
||||||
QSpinBox::down-button {
|
QSpinBox::down-button {
|
||||||
subcontrol-origin: padding;
|
subcontrol-origin: padding;
|
||||||
subcontrol-position: bottom right;
|
subcontrol-position: bottom right;
|
||||||
border: none;
|
border: none;
|
||||||
width: 10ex;
|
width: 10ex; }
|
||||||
}
|
|
||||||
|
|
||||||
QSpinBox::up-arrow {
|
QSpinBox::up-arrow {
|
||||||
image: url(":/images/default/arrow-up");
|
image: url(":/images/default/arrow-up");
|
||||||
width: 5ex;
|
width: 5ex;
|
||||||
height: 5ex;
|
height: 5ex; }
|
||||||
}
|
|
||||||
|
|
||||||
QSpinBox::up-arrow:hover {
|
QSpinBox::up-arrow:hover {
|
||||||
image: url(":/images/default/arrow-up-hover");
|
image: url(":/images/default/arrow-up-hover"); }
|
||||||
}
|
|
||||||
|
|
||||||
QSpinBox::up-arrow:pressed {
|
QSpinBox::up-arrow:pressed {
|
||||||
image: url(":/images/default/arrow-up-pressed");
|
image: url(":/images/default/arrow-up-pressed"); }
|
||||||
}
|
|
||||||
|
|
||||||
QSpinBox::up-arrow:disabled {
|
QSpinBox::up-arrow:disabled {
|
||||||
image: url(":/images/default/arrow-up-disabled");
|
image: url(":/images/default/arrow-up-disabled"); }
|
||||||
}
|
|
||||||
|
|
||||||
QSpinBox::down-arrow {
|
QSpinBox::down-arrow {
|
||||||
image: url(":/images/default/arrow-down");
|
image: url(":/images/default/arrow-down");
|
||||||
width: 5ex;
|
width: 5ex;
|
||||||
height: 5ex;
|
height: 5ex; }
|
||||||
}
|
|
||||||
|
|
||||||
QSpinBox::down-arrow:hover {
|
QSpinBox::down-arrow:hover {
|
||||||
image: url(":/images/default/arrow-down-hover");
|
image: url(":/images/default/arrow-down-hover"); }
|
||||||
}
|
|
||||||
|
|
||||||
QSpinBox::down-arrow:pressed {
|
QSpinBox::down-arrow:pressed {
|
||||||
image: url(":/images/default/arrow-down-pressed");
|
image: url(":/images/default/arrow-down-pressed"); }
|
||||||
}
|
|
||||||
|
|
||||||
QSpinBox::down-arrow:disabled {
|
QSpinBox::down-arrow:disabled {
|
||||||
image: url(":/images/default/arrow-down-disabled");
|
image: url(":/images/default/arrow-down-disabled"); }
|
||||||
}
|
|
||||||
|
|
||||||
/* ****************************************************************************************************************** */
|
/* ****************************************************************************************************************** */
|
||||||
QPushButton {
|
QPushButton {
|
||||||
height: 15ex;
|
height: 15ex;
|
||||||
min-width: 30ex;
|
min-width: 35ex;
|
||||||
border: 1px solid #c4c4c4;
|
border: 1px solid #c4c4c4;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
}
|
padding-left: 5ex;
|
||||||
|
padding-right: 5ex; }
|
||||||
|
|
||||||
QPushButton:disabled {
|
QPushButton:disabled {
|
||||||
background-color: #f0f0f0;
|
background-color: #f0f0f0;
|
||||||
color: #c4c4c4;
|
color: #c4c4c4; }
|
||||||
}
|
|
||||||
|
|
||||||
QPushButton:hover {
|
QPushButton:hover {
|
||||||
border: 1px solid #3297FD;
|
border: 1px solid #3297FD;
|
||||||
color: #3297FD;
|
color: #3297FD; }
|
||||||
}
|
|
||||||
|
|
||||||
QPushButton:pressed {
|
QPushButton:pressed {
|
||||||
border: 1px solid #3297FD;
|
border: 1px solid #3297FD;
|
||||||
color: #0264c7;
|
color: #0264c7; }
|
||||||
}
|
|
||||||
|
|
||||||
/* ****************************************************************************************************************** */
|
/* ****************************************************************************************************************** */
|
||||||
QListView {
|
QListView {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
border: 1px solid #c4c4c4;
|
border: 1px solid #c4c4c4; }
|
||||||
}
|
|
||||||
|
|
||||||
QListView, QTableView, QTreeView {
|
QListView, QTableView, QTreeView {
|
||||||
alternate-background-color: #e4e4ec;
|
alternate-background-color: #e4e4ec;
|
||||||
selection-background-color: #B4D5FE;
|
selection-background-color: #B4D5FE;
|
||||||
selection-color: #504040;
|
selection-color: #504040; }
|
||||||
}
|
|
||||||
|
|
||||||
QTreeView::branch {
|
QTreeView::branch {
|
||||||
padding: 5ex 0 5ex 0;
|
padding: 5ex 0 5ex 0;
|
||||||
selection-background-color: #B4D5FE;
|
selection-background-color: #B4D5FE;
|
||||||
border-bottom: 1px solid #c4c4c4;
|
border-bottom: 1px solid #c4c4c4; }
|
||||||
}
|
|
||||||
|
|
||||||
QTreeView::branch:selected {
|
QTreeView::branch:selected {
|
||||||
background-color: #B4D5FE;
|
background-color: #B4D5FE; }
|
||||||
}
|
|
||||||
|
|
||||||
QTreeView::branch:open:has-children {
|
QTreeView::branch:open:has-children {
|
||||||
border-image: none;
|
border-image: none;
|
||||||
image: url(":/images/default/arrow-down");
|
image: url(":/images/default/arrow-down"); }
|
||||||
}
|
|
||||||
|
|
||||||
QTreeView::branch:closed:has-children {
|
QTreeView::branch:closed:has-children {
|
||||||
border-image: none;
|
border-image: none;
|
||||||
image: url(":/images/default/arrow-right");
|
image: url(":/images/default/arrow-right"); }
|
||||||
}
|
|
||||||
|
|
||||||
QListView::item, QTableView::item, QTreeView::item {
|
QListView::item, QTableView::item, QTreeView::item {
|
||||||
height: 15ex;
|
height: 15ex;
|
||||||
border-bottom: 1px solid #c4c4c4;
|
border-bottom: 1px solid #c4c4c4; }
|
||||||
}
|
|
||||||
|
|
||||||
QListView::item:selected, QTableView::item:selected, QTreeView::item:selected {
|
QListView::item:selected, QTableView::item:selected, QTreeView::item:selected {
|
||||||
background-color: #B4D5FE;
|
background-color: #B4D5FE; }
|
||||||
}
|
|
||||||
|
|
||||||
QTreeView::indicator {
|
QTreeView::indicator {
|
||||||
width: 9ex;
|
width: 9ex;
|
||||||
height: 9ex;
|
height: 9ex;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
padding: 1px;
|
padding: 1px;
|
||||||
margin: 0;
|
margin: 0; }
|
||||||
}
|
|
||||||
|
|
||||||
QTreeView::indicator:hover, QTreeView::indicator:checked, QTreeView::indicator:indeterminate {
|
QTreeView::indicator:hover {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
border: 1px solid #c4c4c4;
|
border: 1px solid #c4c4c4; }
|
||||||
}
|
|
||||||
|
|
||||||
QTreeView::indicator:checked {
|
QTreeView::indicator:checked {
|
||||||
image: url(":/images/default/check");
|
background-color: #3297FD;
|
||||||
}
|
border: 1px solid #198afd;
|
||||||
|
image: url(":/images/default/check"); }
|
||||||
|
|
||||||
QTreeView::indicator:checked:disabled {
|
QTreeView::indicator:checked:disabled {
|
||||||
image: url(":/images/default/check-disabled");
|
background-color: #B4D5FE;
|
||||||
}
|
border: 1px solid #9bc7fe;
|
||||||
|
image: url(":/images/default/check-disabled"); }
|
||||||
|
|
||||||
QTreeView::indicator:indeterminate {
|
QTreeView::indicator:indeterminate {
|
||||||
image: url(":/images/default/partial-check");
|
background-color: #3297FD;
|
||||||
}
|
border: 1px solid #198afd;
|
||||||
|
image: url(":/images/default/partial-check"); }
|
||||||
|
|
||||||
QTreeView::indicator:indeterminate:disabled {
|
QTreeView::indicator:indeterminate:disabled {
|
||||||
image: url(":/images/default/partial-check-disabled");
|
background-color: #B4D5FE;
|
||||||
}
|
border: 1px solid #9bc7fe;
|
||||||
|
image: url(":/images/default/partial-check-disabled"); }
|
||||||
|
|
||||||
/* ****************************************************************************************************************** */
|
/* ****************************************************************************************************************** */
|
||||||
QMenu {
|
QMenu {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
border: 1px solid #c4c4c4;
|
border: 1px solid #c4c4c4;
|
||||||
padding: 2ex 1ex 2ex 1ex;
|
padding: 2ex 1ex 2ex 1ex; }
|
||||||
}
|
|
||||||
|
|
||||||
QMenu::item {
|
QMenu::item {
|
||||||
height: 15ex;
|
height: 15ex;
|
||||||
padding-left: 15ex;
|
padding-left: 15ex;
|
||||||
padding-right: 5ex;
|
padding-right: 5ex;
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
/* reserve space for selection border */;
|
/* reserve space for selection border */ }
|
||||||
}
|
|
||||||
|
|
||||||
QMenu::item:selected {
|
QMenu::item:selected {
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
background-color: #B4D5FE;
|
background-color: #B4D5FE;
|
||||||
color: #504040;
|
color: #504040; }
|
||||||
}
|
|
||||||
|
|
||||||
QMenu::icon {
|
QMenu::icon {
|
||||||
width: 8ex;
|
width: 8ex;
|
||||||
height: 8ex;
|
height: 8ex;
|
||||||
background: none;
|
background: none;
|
||||||
border: 1px inset transparent;
|
border: 1px inset transparent;
|
||||||
padding: 1px;
|
padding: 0;
|
||||||
margin: 0 0 0 2ex;
|
margin: 0 1ex 0 2ex; }
|
||||||
}
|
|
||||||
|
|
||||||
QMenu::icon:checked {
|
QMenu::icon:checked {
|
||||||
/* appearance of a 'checked' icon */
|
/* appearance of a 'checked' icon */
|
||||||
background-color: #dddddd;
|
background-color: #dddddd;
|
||||||
border: 1px inset #aaaaaa;
|
border: 1px inset #aaaaaa; }
|
||||||
}
|
|
||||||
|
|
||||||
QMenu::separator {
|
QMenu::separator {
|
||||||
height: 1px;
|
height: 1px;
|
||||||
background: #c4c4c4;
|
background: #c4c4c4;
|
||||||
margin-left: 4ex;
|
margin-left: 4ex;
|
||||||
margin-right: 4ex;
|
margin-right: 4ex; }
|
||||||
}
|
|
||||||
|
|
||||||
QMenu::indicator {
|
QMenu::indicator {
|
||||||
width: 9ex;
|
width: 9ex;
|
||||||
height: 9ex;
|
height: 9ex;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
border: 1px solid #c4c4c4;
|
border: 1px solid #c4c4c4;
|
||||||
padding: 1px;
|
padding: 1px;
|
||||||
margin: 0 0 0 2ex;
|
margin: 0 0 0 2ex; }
|
||||||
}
|
|
||||||
|
|
||||||
QMenu::indicator:non-exclusive:checked {
|
QMenu::indicator:non-exclusive:checked {
|
||||||
image: url(":/images/default/check");
|
background-color: #3297FD;
|
||||||
}
|
border: 1px solid #198afd;
|
||||||
|
image: url(":/images/default/check"); }
|
||||||
|
|
||||||
QMenu::indicator:non-exclusive:checked:disabled {
|
QMenu::indicator:non-exclusive:checked:disabled {
|
||||||
image: url(":/images/default/check-disabled");
|
background-color: #B4D5FE;
|
||||||
}
|
border: 1px solid #9bc7fe;
|
||||||
|
image: url(":/images/default/check-disabled"); }
|
||||||
|
|
||||||
QMenu::indicator:exclusive {
|
QMenu::indicator:exclusive {
|
||||||
border-radius: 5ex;
|
border-radius: 5ex; }
|
||||||
}
|
|
||||||
|
|
||||||
QMenu::indicator:exclusive:checked {
|
QMenu::indicator:exclusive:checked {
|
||||||
image: url(":/images/default/radio-check");
|
image: url(":/images/default/radio-check"); }
|
||||||
}
|
|
||||||
|
|
||||||
QMenu::indicator:exclusive:checked:disabled {
|
QMenu::indicator:exclusive:checked:disabled {
|
||||||
image: url(":/images/default/radio-check-disabled");
|
image: url(":/images/default/radio-check-disabled"); }
|
||||||
}
|
|
||||||
|
|
||||||
/* ****************************************************************************************************************** */
|
/* ****************************************************************************************************************** */
|
||||||
QHeaderView::section {
|
QHeaderView::section {
|
||||||
height: 15.3ex;
|
height: 15.3ex;
|
||||||
width: 60ex;
|
width: 60ex;
|
||||||
min-width: 40ex;
|
min-width: 40ex;
|
||||||
background: #eeeeee;
|
background: #eeeeee; }
|
||||||
}
|
|
||||||
|
|
||||||
/* ****************************************************************************************************************** */
|
/* ****************************************************************************************************************** */
|
||||||
DockWidget QWidget#EasyDockWidgetTitle {
|
DockWidget QWidget#EasyDockWidgetTitle {
|
||||||
background-color: #686464;
|
background-color: #686464; }
|
||||||
}
|
DockWidget QWidget#EasyDockWidgetTitle QLabel {
|
||||||
|
color: white;
|
||||||
DockWidget QWidget#EasyDockWidgetTitle QLabel {
|
margin-left: 4px; }
|
||||||
color: white;
|
DockWidget QWidget#EasyDockWidgetTitle QPushButton {
|
||||||
margin-left: 4px;
|
background: none;
|
||||||
}
|
border: none;
|
||||||
|
max-height: 8ex;
|
||||||
DockWidget QWidget#EasyDockWidgetTitle QPushButton {
|
min-width: 8ex;
|
||||||
background: none;
|
max-width: 8ex;
|
||||||
border: none;
|
margin-right: 3ex;
|
||||||
max-height: 8ex;
|
padding: 0; }
|
||||||
min-width: 8ex;
|
DockWidget QWidget#EasyDockWidgetTitle QPushButton#EasyDockWidgetFloatButton {
|
||||||
max-width: 8ex;
|
image: url(":/images/default/dock-maximize-white"); }
|
||||||
margin-right: 3ex;
|
DockWidget QWidget#EasyDockWidgetTitle QPushButton#EasyDockWidgetFloatButton:hover {
|
||||||
padding: 0;
|
image: url(":/images/default/dock-maximize-white-hover"); }
|
||||||
}
|
DockWidget QWidget#EasyDockWidgetTitle QPushButton#EasyDockWidgetFloatButton:pressed {
|
||||||
|
image: url(":/images/default/dock-maximize-white-pressed"); }
|
||||||
DockWidget QWidget#EasyDockWidgetTitle QPushButton#EasyDockWidgetFloatButton {
|
DockWidget QWidget#EasyDockWidgetTitle QPushButton#EasyDockWidgetFloatButton[floating=true] {
|
||||||
image: url(":/images/default/dock-maximize-white");
|
image: url(":/images/default/dock-minimize-white"); }
|
||||||
}
|
DockWidget QWidget#EasyDockWidgetTitle QPushButton#EasyDockWidgetFloatButton[floating=true]:hover {
|
||||||
|
image: url(":/images/default/dock-minimize-white-hover"); }
|
||||||
DockWidget QWidget#EasyDockWidgetTitle QPushButton#EasyDockWidgetFloatButton:hover {
|
DockWidget QWidget#EasyDockWidgetTitle QPushButton#EasyDockWidgetFloatButton[floating=true]:pressed {
|
||||||
image: url(":/images/default/dock-maximize-white-hover");
|
image: url(":/images/default/dock-minimize-white-pressed"); }
|
||||||
}
|
DockWidget QWidget#EasyDockWidgetTitle QPushButton#EasyDockWidgetCloseButton {
|
||||||
|
image: url(":/images/default/dock-close-white"); }
|
||||||
DockWidget QWidget#EasyDockWidgetTitle QPushButton#EasyDockWidgetFloatButton:pressed {
|
DockWidget QWidget#EasyDockWidgetTitle QPushButton#EasyDockWidgetCloseButton:hover {
|
||||||
image: url(":/images/default/dock-maximize-white-pressed");
|
image: url(":/images/default/dock-close-white-hover"); }
|
||||||
}
|
DockWidget QWidget#EasyDockWidgetTitle QPushButton#EasyDockWidgetCloseButton:pressed {
|
||||||
|
image: url(":/images/default/dock-close-white-pressed"); }
|
||||||
DockWidget QWidget#EasyDockWidgetTitle QPushButton#EasyDockWidgetFloatButton[floating=true] {
|
|
||||||
image: url(":/images/default/dock-minimize-white");
|
|
||||||
}
|
|
||||||
|
|
||||||
DockWidget QWidget#EasyDockWidgetTitle QPushButton#EasyDockWidgetFloatButton[floating=true]:hover {
|
|
||||||
image: url(":/images/default/dock-minimize-white-hover");
|
|
||||||
}
|
|
||||||
|
|
||||||
DockWidget QWidget#EasyDockWidgetTitle QPushButton#EasyDockWidgetFloatButton[floating=true]:pressed {
|
|
||||||
image: url(":/images/default/dock-minimize-white-pressed");
|
|
||||||
}
|
|
||||||
|
|
||||||
DockWidget QWidget#EasyDockWidgetTitle QPushButton#EasyDockWidgetCloseButton {
|
|
||||||
image: url(":/images/default/dock-close-white");
|
|
||||||
}
|
|
||||||
|
|
||||||
DockWidget QWidget#EasyDockWidgetTitle QPushButton#EasyDockWidgetCloseButton:hover {
|
|
||||||
image: url(":/images/default/dock-close-white-hover");
|
|
||||||
}
|
|
||||||
|
|
||||||
DockWidget QWidget#EasyDockWidgetTitle QPushButton#EasyDockWidgetCloseButton:pressed {
|
|
||||||
image: url(":/images/default/dock-close-white-pressed");
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ****************************************************************************************************************** */
|
/* ****************************************************************************************************************** */
|
||||||
QProgressBar {
|
QProgressBar {
|
||||||
background-color: #a4a4b4;
|
background-color: #a4a4b4;
|
||||||
border: none;
|
border: none;
|
||||||
color: white;
|
color: white;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
height: 14ex;
|
height: 14ex; }
|
||||||
}
|
|
||||||
|
|
||||||
QProgressBar::chunk {
|
QProgressBar::chunk {
|
||||||
background-color: #3297FD;
|
background-color: #3297FD;
|
||||||
width: 2px;
|
width: 2px;
|
||||||
margin: 0;
|
margin: 0; }
|
||||||
}
|
|
||||||
|
|
||||||
/* ****************************************************************************************************************** */
|
/* ****************************************************************************************************************** */
|
||||||
QScrollBar {
|
QScrollBar {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border: none;
|
border: none;
|
||||||
padding: 0;
|
padding: 0; }
|
||||||
}
|
|
||||||
|
|
||||||
QScrollBar:hover {
|
QScrollBar:hover {
|
||||||
background-color: rgba(0, 0, 0, 0.1);
|
background-color: rgba(0, 0, 0, 0.1); }
|
||||||
}
|
|
||||||
|
|
||||||
QScrollBar:horizontal {
|
QScrollBar:horizontal {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
height: 5ex;
|
height: 5ex; }
|
||||||
}
|
|
||||||
|
|
||||||
QScrollBar:vertical {
|
QScrollBar:vertical {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
width: 5ex;
|
width: 5ex; }
|
||||||
}
|
|
||||||
|
|
||||||
QScrollBar::handle {
|
QScrollBar::handle {
|
||||||
background-color: rgba(0, 0, 0, 0.4);
|
background-color: rgba(0, 0, 0, 0.4);
|
||||||
border: none;
|
border: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0; }
|
||||||
}
|
|
||||||
|
|
||||||
QScrollBar::handle:pressed {
|
QScrollBar::handle:pressed {
|
||||||
background-color: rgba(0, 0, 0, 0.6);
|
background-color: rgba(0, 0, 0, 0.6); }
|
||||||
}
|
|
||||||
|
|
||||||
QScrollBar::handle:vertical {
|
QScrollBar::handle:vertical {
|
||||||
min-height: 20ex;
|
min-height: 20ex;
|
||||||
margin-left: 3ex;
|
margin-left: 3ex; }
|
||||||
}
|
|
||||||
|
|
||||||
QScrollBar::handle:vertical:hover, QScrollBar::handle:vertical:pressed {
|
QScrollBar::handle:vertical:hover, QScrollBar::handle:vertical:pressed {
|
||||||
margin-left: 0;
|
margin-left: 0; }
|
||||||
}
|
|
||||||
|
|
||||||
QScrollBar::handle:horizontal {
|
QScrollBar::handle:horizontal {
|
||||||
min-width: 20ex;
|
min-width: 20ex;
|
||||||
margin-top: 3ex;
|
margin-top: 3ex; }
|
||||||
}
|
|
||||||
|
|
||||||
QScrollBar::handle:horizontal:hover, QScrollBar::handle:horizontal:pressed {
|
QScrollBar::handle:horizontal:hover, QScrollBar::handle:horizontal:pressed {
|
||||||
margin-top: 0;
|
margin-top: 0; }
|
||||||
}
|
|
||||||
|
|
||||||
QScrollBar::add-line, QScrollBar::sub-line {
|
QScrollBar::add-line, QScrollBar::sub-line {
|
||||||
background: none;
|
background: none;
|
||||||
border: none;
|
border: none; }
|
||||||
}
|
|
||||||
|
@ -34,6 +34,12 @@ $TreeViewSelectionTextColor: $TextColor;
|
|||||||
$BackgroundColor: white;
|
$BackgroundColor: white;
|
||||||
$DisabledBackgroundColor: #f0f0f0;
|
$DisabledBackgroundColor: #f0f0f0;
|
||||||
|
|
||||||
|
$IndicatorBackgroundColor: $DarkSelectionColor;
|
||||||
|
$IndicatorBorderColor: darken($DarkSelectionColor, 5%);
|
||||||
|
|
||||||
|
$DisabledIndicatorBackgroundColor: $SelectionColor;
|
||||||
|
$DisabledIndicatorBorderColor: darken($SelectionColor, 5%);
|
||||||
|
|
||||||
$ButtonHoverColor: $DarkSelectionColor;//#922c2c;
|
$ButtonHoverColor: $DarkSelectionColor;//#922c2c;
|
||||||
$ButtonPressedColor: darken($DarkSelectionColor, 20%);//#370400;
|
$ButtonPressedColor: darken($DarkSelectionColor, 20%);//#370400;
|
||||||
|
|
||||||
@ -220,9 +226,11 @@ QSpinBox::down-arrow:disabled {
|
|||||||
/* ****************************************************************************************************************** */
|
/* ****************************************************************************************************************** */
|
||||||
QPushButton {
|
QPushButton {
|
||||||
height: $InputHeight;
|
height: $InputHeight;
|
||||||
min-width: 30ex;
|
min-width: 35ex;
|
||||||
border: 1px solid $BorderColor;
|
border: 1px solid $BorderColor;
|
||||||
background-color: $BackgroundColor;
|
background-color: $BackgroundColor;
|
||||||
|
padding-left: 5ex;
|
||||||
|
padding-right: 5ex;
|
||||||
}
|
}
|
||||||
|
|
||||||
QPushButton:disabled {
|
QPushButton:disabled {
|
||||||
@ -291,24 +299,32 @@ QTreeView::indicator {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
QTreeView::indicator:hover, QTreeView::indicator:checked, QTreeView::indicator:indeterminate {
|
QTreeView::indicator:hover {
|
||||||
background-color: $BackgroundColor;
|
background-color: $BackgroundColor;
|
||||||
border: 1px solid $BorderColor;
|
border: 1px solid $BorderColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
QTreeView::indicator:checked {
|
QTreeView::indicator:checked {
|
||||||
|
background-color: $IndicatorBackgroundColor;
|
||||||
|
border: 1px solid $IndicatorBorderColor;
|
||||||
image: url(":/images/default/check");
|
image: url(":/images/default/check");
|
||||||
}
|
}
|
||||||
|
|
||||||
QTreeView::indicator:checked:disabled {
|
QTreeView::indicator:checked:disabled {
|
||||||
|
background-color: $DisabledIndicatorBackgroundColor;
|
||||||
|
border: 1px solid $DisabledIndicatorBorderColor;
|
||||||
image: url(":/images/default/check-disabled");
|
image: url(":/images/default/check-disabled");
|
||||||
}
|
}
|
||||||
|
|
||||||
QTreeView::indicator:indeterminate {
|
QTreeView::indicator:indeterminate {
|
||||||
|
background-color: $IndicatorBackgroundColor;
|
||||||
|
border: 1px solid $IndicatorBorderColor;
|
||||||
image: url(":/images/default/partial-check");
|
image: url(":/images/default/partial-check");
|
||||||
}
|
}
|
||||||
|
|
||||||
QTreeView::indicator:indeterminate:disabled {
|
QTreeView::indicator:indeterminate:disabled {
|
||||||
|
background-color: $DisabledIndicatorBackgroundColor;
|
||||||
|
border: 1px solid $DisabledIndicatorBorderColor;
|
||||||
image: url(":/images/default/partial-check-disabled");
|
image: url(":/images/default/partial-check-disabled");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -337,8 +353,8 @@ QMenu::icon {
|
|||||||
height: 8ex;
|
height: 8ex;
|
||||||
background: none;
|
background: none;
|
||||||
border: 1px inset transparent;
|
border: 1px inset transparent;
|
||||||
padding: 1px;
|
padding: 0;
|
||||||
margin: 0 0 0 2ex;
|
margin: 0 1ex 0 2ex;
|
||||||
}
|
}
|
||||||
|
|
||||||
QMenu::icon:checked { /* appearance of a 'checked' icon */
|
QMenu::icon:checked { /* appearance of a 'checked' icon */
|
||||||
@ -363,10 +379,14 @@ QMenu::indicator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
QMenu::indicator:non-exclusive:checked {
|
QMenu::indicator:non-exclusive:checked {
|
||||||
|
background-color: $IndicatorBackgroundColor;
|
||||||
|
border: 1px solid $IndicatorBorderColor;
|
||||||
image: url(":/images/default/check");
|
image: url(":/images/default/check");
|
||||||
}
|
}
|
||||||
|
|
||||||
QMenu::indicator:non-exclusive:checked:disabled {
|
QMenu::indicator:non-exclusive:checked:disabled {
|
||||||
|
background-color: $DisabledIndicatorBackgroundColor;
|
||||||
|
border: 1px solid $DisabledIndicatorBorderColor;
|
||||||
image: url(":/images/default/check-disabled");
|
image: url(":/images/default/check-disabled");
|
||||||
}
|
}
|
||||||
|
|
||||||
|