parent
3d53591281
commit
7265d082b0
|
@ -17,9 +17,7 @@ CrissCross::CrissCross( QWidget* parent )
|
|||
{
|
||||
this->ui->setupUi(this);
|
||||
|
||||
QString stylesheet;
|
||||
StyleSec::Games::CrissCross::getStyleSheet( stylesheet );
|
||||
this->setStyleSheet( stylesheet );
|
||||
this->setStyleSheet( StyleSec::Games::CrissCross::getStyleSheet() );
|
||||
|
||||
// verify that one player is human and the other is not
|
||||
if ( !(p1_human^p2_human) ) {
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
#include "modules/exceptions.h"
|
||||
|
||||
#include <QString>
|
||||
#include <QtCore/QStringBuilder>
|
||||
|
||||
#include <unordered_map>
|
||||
|
||||
|
@ -23,7 +24,7 @@ enum StyleId : uint32_t {
|
|||
|
||||
using StyleMap = std::unordered_map<StyleId, QString>;
|
||||
|
||||
const StyleMap makeStyleMap()
|
||||
StyleMap makeStyleMap()
|
||||
{
|
||||
switch ( GlobalConfigs::window_theme ) {
|
||||
case WindowTheme::Light:
|
||||
|
@ -39,7 +40,6 @@ const StyleMap makeStyleMap()
|
|||
{LINES_BORDER,
|
||||
"rgb( 230, 230, 230 )"}
|
||||
};
|
||||
break;
|
||||
case WindowTheme::Dark:
|
||||
return {
|
||||
{WINDOW_BASE,
|
||||
|
@ -53,10 +53,8 @@ const StyleMap makeStyleMap()
|
|||
{LINES_BORDER,
|
||||
"rgb( 27, 30, 33 )"}
|
||||
};
|
||||
break;
|
||||
default:
|
||||
throw GenericException( "Unexpected WindowTheme: "+std::to_string(static_cast<themes_t>(GlobalConfigs::window_theme)), true );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -66,67 +64,68 @@ const StyleMap makeStyleMap()
|
|||
namespace StyleSec::Games::CrissCross
|
||||
{
|
||||
|
||||
void getStyleSheet( QString& stylesheet )
|
||||
QString getStyleSheet()
|
||||
{
|
||||
if ( GlobalConfigs::window_theme != WindowTheme::Native ) {
|
||||
const StyleMap style{ makeStyleMap() };
|
||||
stylesheet =
|
||||
"QWidget#CrissCross {"
|
||||
" background-color: "+style.at(WINDOW_BASE)+";"
|
||||
"}"
|
||||
"QPushButton#button_NE,"
|
||||
"QPushButton#button_N,"
|
||||
"QPushButton#button_NW,"
|
||||
"QPushButton#button_E,"
|
||||
"QPushButton#button_C,"
|
||||
"QPushButton#button_W,"
|
||||
"QPushButton#button_SE,"
|
||||
"QPushButton#button_S,"
|
||||
"QPushButton#button_SW {"
|
||||
" border-radius: 4px;"
|
||||
" border: 1px solid "+style.at(WINDOW_BASE)+";"
|
||||
" background-color: "+style.at(WINDOW_BASE)+";"
|
||||
"}"
|
||||
"QPushButton#button_NE:hover,"
|
||||
"QPushButton#button_N:hover,"
|
||||
"QPushButton#button_NW:hover,"
|
||||
"QPushButton#button_E:hover,"
|
||||
"QPushButton#button_C:hover,"
|
||||
"QPushButton#button_W:hover,"
|
||||
"QPushButton#button_SE:hover,"
|
||||
"QPushButton#button_S:hover,"
|
||||
"QPushButton#button_SW:hover {"
|
||||
" border-color: "+style.at(TILES_BORDER_HOVER)+";"
|
||||
" background-color: "+style.at(TILES_BASE_HOVER)+";"
|
||||
"}"
|
||||
"QPushButton#button_NE::flat,"
|
||||
"QPushButton#button_N::flat,"
|
||||
"QPushButton#button_NW::flat,"
|
||||
"QPushButton#button_E::flat,"
|
||||
"QPushButton#button_C::flat,"
|
||||
"QPushButton#button_W::flat,"
|
||||
"QPushButton#button_SE::flat,"
|
||||
"QPushButton#button_S::flat,"
|
||||
"QPushButton#button_SW::flat {"
|
||||
" border-color: "+style.at(WINDOW_BASE)+";"
|
||||
" background-color: "+style.at(WINDOW_BASE)+";"
|
||||
"}"
|
||||
"QFrame#line_1,"
|
||||
"QFrame#line_2,"
|
||||
"QFrame#line_3,"
|
||||
"QFrame#line_4,"
|
||||
"QFrame#line_5,"
|
||||
"QFrame#line_6,"
|
||||
"QFrame#line_7,"
|
||||
"QFrame#line_8,"
|
||||
"QFrame#line_9,"
|
||||
"QFrame#line_10,"
|
||||
"QFrame#line_11,"
|
||||
"QFrame#line_12 {"
|
||||
" border: 1px solid "+style.at(LINES_BORDER)+";"
|
||||
" background-color: "+style.at(LINES_BASE)+";"
|
||||
"}";
|
||||
if ( GlobalConfigs::window_theme == WindowTheme::Native ) {
|
||||
return "";
|
||||
}
|
||||
const StyleMap style{ makeStyleMap() };
|
||||
return
|
||||
"QWidget#CrissCross {"
|
||||
" background-color: "% style.at(WINDOW_BASE) %";"
|
||||
"}"
|
||||
"QPushButton#button_NE,"
|
||||
"QPushButton#button_N,"
|
||||
"QPushButton#button_NW,"
|
||||
"QPushButton#button_E,"
|
||||
"QPushButton#button_C,"
|
||||
"QPushButton#button_W,"
|
||||
"QPushButton#button_SE,"
|
||||
"QPushButton#button_S,"
|
||||
"QPushButton#button_SW {"
|
||||
" border-radius: 4px;"
|
||||
" border: 1px solid "% style.at(WINDOW_BASE) %";"
|
||||
" background-color: "% style.at(WINDOW_BASE) %";"
|
||||
"}"
|
||||
"QPushButton#button_NE:hover,"
|
||||
"QPushButton#button_N:hover,"
|
||||
"QPushButton#button_NW:hover,"
|
||||
"QPushButton#button_E:hover,"
|
||||
"QPushButton#button_C:hover,"
|
||||
"QPushButton#button_W:hover,"
|
||||
"QPushButton#button_SE:hover,"
|
||||
"QPushButton#button_S:hover,"
|
||||
"QPushButton#button_SW:hover {"
|
||||
" border-color: "% style.at(TILES_BORDER_HOVER) %";"
|
||||
" background-color: "% style.at(TILES_BASE_HOVER) %";"
|
||||
"}"
|
||||
"QPushButton#button_NE::flat,"
|
||||
"QPushButton#button_N::flat,"
|
||||
"QPushButton#button_NW::flat,"
|
||||
"QPushButton#button_E::flat,"
|
||||
"QPushButton#button_C::flat,"
|
||||
"QPushButton#button_W::flat,"
|
||||
"QPushButton#button_SE::flat,"
|
||||
"QPushButton#button_S::flat,"
|
||||
"QPushButton#button_SW::flat {"
|
||||
" border-color: "% style.at(WINDOW_BASE) %";"
|
||||
" background-color: "% style.at(WINDOW_BASE) %";"
|
||||
"}"
|
||||
"QFrame#line_1,"
|
||||
"QFrame#line_2,"
|
||||
"QFrame#line_3,"
|
||||
"QFrame#line_4,"
|
||||
"QFrame#line_5,"
|
||||
"QFrame#line_6,"
|
||||
"QFrame#line_7,"
|
||||
"QFrame#line_8,"
|
||||
"QFrame#line_9,"
|
||||
"QFrame#line_10,"
|
||||
"QFrame#line_11,"
|
||||
"QFrame#line_12 {"
|
||||
" border: 1px solid "% style.at(LINES_BORDER) %";"
|
||||
" background-color: "% style.at(LINES_BASE) %";"
|
||||
"}";
|
||||
}
|
||||
|
||||
} // namespace StyleSec::Games::CrissCross
|
||||
|
|
|
@ -8,7 +8,7 @@ class QString;
|
|||
namespace StyleSec::Games::CrissCross
|
||||
{
|
||||
|
||||
void getStyleSheet( QString& stylesheet );
|
||||
QString getStyleSheet();
|
||||
|
||||
} // namespace StyleSec::Games::CrissCross
|
||||
|
||||
|
|
|
@ -18,9 +18,7 @@ SnakeGame::SnakeGame( const QFont& term_font, QWidget* parent )
|
|||
{
|
||||
this->ui->setupUi(this);
|
||||
|
||||
QString stylesheet;
|
||||
StyleSec::Games::Snake::getStyleSheet( stylesheet );
|
||||
this->setStyleSheet( stylesheet );
|
||||
this->setStyleSheet( StyleSec::Games::Snake::getStyleSheet() );
|
||||
|
||||
QFont font{ term_font };
|
||||
font.setPointSize( 64 );
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
#include "modules/exceptions.h"
|
||||
|
||||
#include <QString>
|
||||
#include <QtCore/QStringBuilder>
|
||||
|
||||
#include <unordered_map>
|
||||
|
||||
|
@ -33,7 +34,7 @@ enum StyleId : uint32_t {
|
|||
|
||||
using StyleMap = std::unordered_map<StyleId, QString>;
|
||||
|
||||
const StyleMap makeStyleMap()
|
||||
StyleMap makeStyleMap()
|
||||
{
|
||||
switch ( GlobalConfigs::window_theme ) {
|
||||
case WindowTheme::Light:
|
||||
|
@ -69,7 +70,6 @@ const StyleMap makeStyleMap()
|
|||
{SCORE_BORDER,
|
||||
"transparent"}
|
||||
};
|
||||
break;
|
||||
case WindowTheme::Dark:
|
||||
return {
|
||||
{TEXT,
|
||||
|
@ -103,10 +103,8 @@ const StyleMap makeStyleMap()
|
|||
{SCORE_BORDER,
|
||||
"transparent"}
|
||||
};
|
||||
break;
|
||||
default:
|
||||
throw GenericException( "Unexpected WindowTheme: "+std::to_string(static_cast<themes_t>(GlobalConfigs::window_theme)), true );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -116,12 +114,12 @@ const StyleMap makeStyleMap()
|
|||
namespace StyleSec::Games::Snake
|
||||
{
|
||||
|
||||
void getStyleSheet( QString& stylesheet )
|
||||
QString getStyleSheet()
|
||||
{
|
||||
QString icons_theme;
|
||||
switch ( GlobalConfigs::window_theme ) {
|
||||
case WindowTheme::Native:
|
||||
return;
|
||||
return "";
|
||||
case WindowTheme::Light:
|
||||
icons_theme = "dark";
|
||||
break;
|
||||
|
@ -130,35 +128,34 @@ void getStyleSheet( QString& stylesheet )
|
|||
break;
|
||||
default:
|
||||
throw GenericException( "Unexpected WindowTheme: "+std::to_string(static_cast<themes_t>(GlobalConfigs::window_theme)), true );
|
||||
break;
|
||||
}
|
||||
const StyleMap style{ makeStyleMap() };
|
||||
stylesheet =
|
||||
return
|
||||
"* {"
|
||||
" color: "+style.at(TEXT)+";"
|
||||
" color: "% style.at(TEXT) %";"
|
||||
"}"
|
||||
"QWidget#SnakeGame {"
|
||||
" background-color: "+style.at(WINDOW_BASE_SECONDARY)+";"
|
||||
" background-color: "% style.at(WINDOW_BASE_SECONDARY) %";"
|
||||
"}"
|
||||
"QWidget#stackedWidget_GameDisplay {"
|
||||
" border: 1px solid "+style.at(WINDOW_BORDER)+";"
|
||||
" border: 1px solid "% style.at(WINDOW_BORDER) %";"
|
||||
"}"
|
||||
"QWidget#stackedPage_GameMenu {"
|
||||
" border-radius: 16px;"
|
||||
" background-color: "+style.at(WINDOW_BASE_PRIMARY)+";"
|
||||
" background-color: "% style.at(WINDOW_BASE_PRIMARY) %";"
|
||||
"}"
|
||||
"QWidget#stackedPage_GameBoard {"
|
||||
" border-radius: 6px;"
|
||||
" background-color: "+style.at(WINDOW_BASE_PRIMARY)+";"
|
||||
" background-color: "% style.at(WINDOW_BASE_PRIMARY) %";"
|
||||
"}"
|
||||
"QComboBox {"
|
||||
" border-radius: 8px;"
|
||||
" background-color: "+style.at(BOXES_BASE_PRIMARY)+";"
|
||||
" background-color: "% style.at(BOXES_BASE_PRIMARY) %";"
|
||||
"}"
|
||||
"QComboBox:on {"
|
||||
" border-bottom-left-radius: 0px;"
|
||||
" border-bottom: 2px solid "+style.at(BOXES_DECO)+";"
|
||||
" background-color: "+style.at(BOXES_BASE_SECONDARY)+";"
|
||||
" border-bottom: 2px solid "% style.at(BOXES_DECO) %";"
|
||||
" background-color: "% style.at(BOXES_BASE_SECONDARY) %";"
|
||||
"}"
|
||||
"QComboBox::drop-down {"
|
||||
" border-top-right-radius: 8px;"
|
||||
|
@ -166,21 +163,21 @@ void getStyleSheet( QString& stylesheet )
|
|||
" border-left: 3px solid"
|
||||
" QLinearGradient("
|
||||
" x0:0, y0:0, x1:0, y1:1,"
|
||||
" stop:0 "+style.at(BOXES_BASE_PRIMARY)+","
|
||||
" stop:0.1 "+style.at(BOXES_BASE_PRIMARY)+","
|
||||
" stop:0.5 "+style.at(BOXES_DECO)+","
|
||||
" stop:0.9 "+style.at(BOXES_BASE_PRIMARY)+","
|
||||
" stop:1 "+style.at(BOXES_BASE_PRIMARY)+");"
|
||||
" background-color: "+style.at(BOXES_BASE_PRIMARY)+";"
|
||||
" selection-background-color: "+style.at(BOXES_BASE_PRIMARY)+";"
|
||||
" stop:0 "% style.at(BOXES_BASE_PRIMARY) %","
|
||||
" stop:0.1 "% style.at(BOXES_BASE_PRIMARY) %","
|
||||
" stop:0.5 "% style.at(BOXES_DECO) %","
|
||||
" stop:0.9 "% style.at(BOXES_BASE_PRIMARY) %","
|
||||
" stop:1 "% style.at(BOXES_BASE_PRIMARY) %");"
|
||||
" background-color: "% style.at(BOXES_BASE_PRIMARY) %";"
|
||||
" selection-background-color: "% style.at(BOXES_BASE_PRIMARY) %";"
|
||||
"}"
|
||||
"QComboBox::drop-down:on {"
|
||||
" border-bottom-right-radius: 0px;"
|
||||
" border-left-color: transparent;"
|
||||
" background-color: "+style.at(BOXES_BASE_SECONDARY)+";"
|
||||
" background-color: "% style.at(BOXES_BASE_SECONDARY) %";"
|
||||
"}"
|
||||
"QComboBox::down-arrow {"
|
||||
" image: url(:/icons/icons/"+icons_theme+"/combobox_arrow.png);"
|
||||
" image: url(:/icons/icons/"% icons_theme %"/combobox_arrow.png);"
|
||||
"}"
|
||||
"QComboBox::down-arrow:on {"
|
||||
" image: url();"
|
||||
|
@ -188,26 +185,26 @@ void getStyleSheet( QString& stylesheet )
|
|||
"QComboBox QAbstractItemView {"
|
||||
" border-bottom-left-radius: 8px;"
|
||||
" border-bottom-right-radius: 8px;"
|
||||
" background-color: "+style.at(BOXES_BASE_PRIMARY)+";"
|
||||
" selection-background-color: "+style.at(BOXES_BASE_SELECTION)+";"
|
||||
" background-color: "% style.at(BOXES_BASE_PRIMARY) %";"
|
||||
" selection-background-color: "% style.at(BOXES_BASE_SELECTION) %";"
|
||||
"}"
|
||||
"QPushButton#button_Play {"
|
||||
" border-radius: 8px;"
|
||||
" border: 0px;"
|
||||
" background-color: "+style.at(PLAY_BUTTON_BASE)+";"
|
||||
" background-color: "% style.at(PLAY_BUTTON_BASE) %";"
|
||||
"}"
|
||||
"QPushButton#button_Play:hover {"
|
||||
" background-color: "+style.at(PLAY_BUTTON_BASE_HOVER)+";"
|
||||
" background-color: "% style.at(PLAY_BUTTON_BASE_HOVER) %";"
|
||||
"}"
|
||||
"QFrame#frame_Score {"
|
||||
" border-radius: 4px;"
|
||||
" border: 1px solid "+style.at(SCORE_FRAME_BORDER)+";"
|
||||
" background-color: "+style.at(SCORE_FRAME_BASE)+";"
|
||||
" border: 1px solid "% style.at(SCORE_FRAME_BORDER) %";"
|
||||
" background-color: "% style.at(SCORE_FRAME_BASE) %";"
|
||||
"}"
|
||||
"QLCDNumber#lcd_Score {"
|
||||
" border: 1px solid "+style.at(SCORE_BORDER)+";"
|
||||
" color: "+style.at(SCORE_TEXT)+";"
|
||||
" background-color: "+style.at(SCORE_BASE)+";"
|
||||
" border: 1px solid "% style.at(SCORE_BORDER) %";"
|
||||
" color: "% style.at(SCORE_TEXT) %";"
|
||||
" background-color: "% style.at(SCORE_BASE) %";"
|
||||
"}";
|
||||
}
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ class QString;
|
|||
namespace StyleSec::Games::Snake
|
||||
{
|
||||
|
||||
void getStyleSheet( QString& stylesheet );
|
||||
QString getStyleSheet();
|
||||
|
||||
} // namespace StyleSec::Games::Snake
|
||||
|
||||
|
|
|
@ -1278,16 +1278,13 @@ void MainWindow::updateUiTheme()
|
|||
this->updateUiIcons();
|
||||
break;
|
||||
case WindowTheme::Light:
|
||||
[[fallthrough]];
|
||||
case WindowTheme::Dark:
|
||||
{
|
||||
// icons first
|
||||
this->updateUiIcons();
|
||||
// window last
|
||||
QString ss;
|
||||
StyleSec::getStyleSheet( ss );
|
||||
this->setStyleSheet( ss );
|
||||
this->setStyleSheet( StyleSec::getStyleSheet() );
|
||||
break;
|
||||
}
|
||||
default:
|
||||
// wrong
|
||||
throw GenericException( "Unexpected WindowTheme: "+std::to_string(static_cast<themes_t>(GlobalConfigs::window_theme)), true );
|
||||
|
|
|
@ -13,9 +13,7 @@ Crapinfo::Crapinfo( const QString& version, const QString& exec_path, const QStr
|
|||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
QString stylesheet;
|
||||
StyleSec::Crapinfo::getStyleSheet( stylesheet );
|
||||
this->setStyleSheet( stylesheet );
|
||||
this->setStyleSheet( StyleSec::Crapinfo::getStyleSheet() );
|
||||
|
||||
// fonts
|
||||
const QString ff{ QFontDatabase::applicationFontFamilies(
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
#include "modules/exceptions.h"
|
||||
|
||||
#include <QString>
|
||||
#include <QtCore/QStringBuilder>
|
||||
|
||||
#include <unordered_map>
|
||||
|
||||
|
@ -36,7 +37,7 @@ enum StyleId : uint32_t {
|
|||
|
||||
using StyleMap = std::unordered_map<StyleId, QString>;
|
||||
|
||||
const StyleMap makeStyleMap()
|
||||
StyleMap makeStyleMap()
|
||||
{
|
||||
switch ( GlobalConfigs::window_theme ) {
|
||||
case WindowTheme::Light:
|
||||
|
@ -78,7 +79,6 @@ const StyleMap makeStyleMap()
|
|||
{SEPARATORS,
|
||||
"rgb( 88, 80, 80 )"}
|
||||
};
|
||||
break;
|
||||
case WindowTheme::Dark:
|
||||
return {
|
||||
{TEXT,
|
||||
|
@ -118,10 +118,8 @@ const StyleMap makeStyleMap()
|
|||
{SEPARATORS,
|
||||
"rgb( 96, 96, 96 )"}
|
||||
};
|
||||
break;
|
||||
default:
|
||||
throw GenericException( "Unexpected WindowTheme: "+std::to_string(static_cast<themes_t>(GlobalConfigs::window_theme)), true );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -131,114 +129,115 @@ const StyleMap makeStyleMap()
|
|||
namespace StyleSec::Crapinfo
|
||||
{
|
||||
|
||||
void getStyleSheet( QString& stylesheet )
|
||||
QString getStyleSheet()
|
||||
{
|
||||
if ( GlobalConfigs::window_theme != WindowTheme::Native ) {
|
||||
const StyleMap style{ makeStyleMap() };
|
||||
stylesheet =
|
||||
"QWidget#Crapinfo {"
|
||||
" color: "+style.at(TEXT)+";"
|
||||
" background-color: "+style.at(WINDOW_SECONDARY)+";"
|
||||
"}"
|
||||
"QFrame {"
|
||||
" border: 0px;"
|
||||
" background-color: transparent;"
|
||||
"}"
|
||||
"QLabel {"
|
||||
" color: "+style.at(TEXT)+";"
|
||||
"}"
|
||||
"QPushButton:pressed {"
|
||||
" background-color: "+style.at(WINDOW_PRIMARY)+";"
|
||||
"}"
|
||||
"QWidget#page_LogDoc,"
|
||||
"QWidget#page_Paths,"
|
||||
"QWidget#scrollAreaContents_LogDoc {"
|
||||
" border: 1px solid "+style.at(BORDER)+";"
|
||||
" border-top: 0px;"
|
||||
" border-radius: 4px;"
|
||||
" border-top-left-radius: 0px;"
|
||||
" border-top-right-radius: 0px;"
|
||||
" background-color: "+style.at(WINDOW_PRIMARY)+";"
|
||||
"}"
|
||||
"QToolBox::tab {"
|
||||
" border: 1px solid "+style.at(BORDER_UNSELECTED)+";"
|
||||
" border-radius: 8px;"
|
||||
" color: "+style.at(TEXT_UNSELECTED)+";"
|
||||
" background-color: "+style.at(TOOLBOX_TAB_BASE)+";"
|
||||
"}"
|
||||
"QToolBox::tab:!selected:hover {"
|
||||
" border-color: "+style.at(BORDER_HOVER)+";"
|
||||
" color: "+style.at(TEXT)+";"
|
||||
" background-color: "+style.at(TOOLBOX_TAB_BASE)+";"
|
||||
"}"
|
||||
"QToolBox::tab:selected {"
|
||||
" border-color: "+style.at(BORDER)+";"
|
||||
" border-top: 4px solid "+style.at(BORDER)+";"
|
||||
" border-bottom: 0px;"
|
||||
" border-bottom-left-radius: 0px;"
|
||||
" border-bottom-right-radius: 0px;"
|
||||
" color: "+style.at(TEXT)+";"
|
||||
" background-color: "+style.at(TOOLBOX_TAB_BASE_SELECTED)+";"
|
||||
"}"
|
||||
"QScrollBar {"
|
||||
" border: 0px solid transparent;"
|
||||
"}"
|
||||
"QScrollBar:horizontal {"
|
||||
" height: 12px;"
|
||||
" background-color: "+style.at(SCROLLBAR_BASE)+";"
|
||||
"}"
|
||||
"QScrollBar::handle:horizontal {"
|
||||
" min-width: 16px;"
|
||||
" margin: 5px 0px 5px 0px;"
|
||||
" background-color: "+style.at(SCROLLBAR_HANDLER)+";"
|
||||
"}"
|
||||
"QScrollBar::handle:horizontal:hover {"
|
||||
" margin: 4px 0px 4px 0px;"
|
||||
" border-radius: 2px;"
|
||||
"}"
|
||||
"QScrollBar:vertical {"
|
||||
" width: 12px;"
|
||||
" background-color: "+style.at(SCROLLBAR_BASE)+";"
|
||||
"}"
|
||||
"QScrollBar::handle:vertical {"
|
||||
" min-width: 16px;"
|
||||
" margin: 0px 5px 0px 5px;"
|
||||
" background-color: "+style.at(SCROLLBAR_HANDLER)+";"
|
||||
"}"
|
||||
"QScrollBar::handle:vertical:hover {"
|
||||
" margin: 0px 4px 0px 4px;"
|
||||
" border-radius: 2px;"
|
||||
"}"
|
||||
"QScrollBar::add-line,"
|
||||
"QScrollBar::sub-line,"
|
||||
"QScrollBar::add-pae,"
|
||||
"QScrollBar::sub-pae,"
|
||||
"QScrollBar::up-arrow,"
|
||||
"QScrollBar::down-arrow,"
|
||||
"QScrollBar::left-arrow,"
|
||||
"QScrollBar::right-arrow {"
|
||||
" border: 0px;"
|
||||
" background-color: "+style.at(SCROLLBAR_CONTROLS)+";"
|
||||
"}"
|
||||
"QLineEdit {"
|
||||
" border-radius: 4px;"
|
||||
" color: "+style.at(LINEDIT_TEXT)+";"
|
||||
" selection-color: "+style.at(LINEDIT_TEXT_SELECTION)+";"
|
||||
" background-color: "+style.at(LINEDIT_BASE)+";"
|
||||
" selection-background-color: "+style.at(LINEDIT_BASE_SELECTION)+";"
|
||||
"}"
|
||||
"QWidget#scrollAreaContents_Paths_Executable,"
|
||||
"QWidget#scrollAreaContents_Paths_ConfigFile,"
|
||||
"QWidget#scrollAreaContents_Paths_AppData {"
|
||||
" border-radius: 8px;"
|
||||
" background-color: "+style.at(PATHS_FRAME_BASE)+";"
|
||||
"}"
|
||||
"QFrame#gline_Version {"
|
||||
" border: 1px solid "+style.at(WINDOW_PRIMARY)+";"
|
||||
" margin: 2px 0px 3px 0px;"
|
||||
" background-color: "+style.at(SEPARATORS)+";"
|
||||
"}";
|
||||
if ( GlobalConfigs::window_theme == WindowTheme::Native ) {
|
||||
return "";
|
||||
}
|
||||
const StyleMap style{ makeStyleMap() };
|
||||
return
|
||||
"QWidget#Crapinfo {"
|
||||
" color: "% style.at(TEXT) %";"
|
||||
" background-color: "% style.at(WINDOW_SECONDARY) %";"
|
||||
"}"
|
||||
"QFrame {"
|
||||
" border: 0px;"
|
||||
" background-color: transparent;"
|
||||
"}"
|
||||
"QLabel {"
|
||||
" color: "% style.at(TEXT) %";"
|
||||
"}"
|
||||
"QPushButton:pressed {"
|
||||
" background-color: "% style.at(WINDOW_PRIMARY) %";"
|
||||
"}"
|
||||
"QWidget#page_LogDoc,"
|
||||
"QWidget#page_Paths,"
|
||||
"QWidget#scrollAreaContents_LogDoc {"
|
||||
" border: 1px solid "% style.at(BORDER) %";"
|
||||
" border-top: 0px;"
|
||||
" border-radius: 4px;"
|
||||
" border-top-left-radius: 0px;"
|
||||
" border-top-right-radius: 0px;"
|
||||
" background-color: "% style.at(WINDOW_PRIMARY) %";"
|
||||
"}"
|
||||
"QToolBox::tab {"
|
||||
" border: 1px solid "% style.at(BORDER_UNSELECTED) %";"
|
||||
" border-radius: 8px;"
|
||||
" color: "% style.at(TEXT_UNSELECTED) %";"
|
||||
" background-color: "% style.at(TOOLBOX_TAB_BASE) %";"
|
||||
"}"
|
||||
"QToolBox::tab:!selected:hover {"
|
||||
" border-color: "% style.at(BORDER_HOVER) %";"
|
||||
" color: "% style.at(TEXT) %";"
|
||||
" background-color: "% style.at(TOOLBOX_TAB_BASE) %";"
|
||||
"}"
|
||||
"QToolBox::tab:selected {"
|
||||
" border-color: "% style.at(BORDER) %";"
|
||||
" border-top: 4px solid "% style.at(BORDER) %";"
|
||||
" border-bottom: 0px;"
|
||||
" border-bottom-left-radius: 0px;"
|
||||
" border-bottom-right-radius: 0px;"
|
||||
" color: "% style.at(TEXT) %";"
|
||||
" background-color: "% style.at(TOOLBOX_TAB_BASE_SELECTED) %";"
|
||||
"}"
|
||||
"QScrollBar {"
|
||||
" border: 0px solid transparent;"
|
||||
"}"
|
||||
"QScrollBar:horizontal {"
|
||||
" height: 12px;"
|
||||
" background-color: "% style.at(SCROLLBAR_BASE) %";"
|
||||
"}"
|
||||
"QScrollBar::handle:horizontal {"
|
||||
" min-width: 16px;"
|
||||
" margin: 5px 0px 5px 0px;"
|
||||
" background-color: "% style.at(SCROLLBAR_HANDLER) %";"
|
||||
"}"
|
||||
"QScrollBar::handle:horizontal:hover {"
|
||||
" margin: 4px 0px 4px 0px;"
|
||||
" border-radius: 2px;"
|
||||
"}"
|
||||
"QScrollBar:vertical {"
|
||||
" width: 12px;"
|
||||
" background-color: "% style.at(SCROLLBAR_BASE) %";"
|
||||
"}"
|
||||
"QScrollBar::handle:vertical {"
|
||||
" min-width: 16px;"
|
||||
" margin: 0px 5px 0px 5px;"
|
||||
" background-color: "% style.at(SCROLLBAR_HANDLER) %";"
|
||||
"}"
|
||||
"QScrollBar::handle:vertical:hover {"
|
||||
" margin: 0px 4px 0px 4px;"
|
||||
" border-radius: 2px;"
|
||||
"}"
|
||||
"QScrollBar::add-line,"
|
||||
"QScrollBar::sub-line,"
|
||||
"QScrollBar::add-pae,"
|
||||
"QScrollBar::sub-pae,"
|
||||
"QScrollBar::up-arrow,"
|
||||
"QScrollBar::down-arrow,"
|
||||
"QScrollBar::left-arrow,"
|
||||
"QScrollBar::right-arrow {"
|
||||
" border: 0px;"
|
||||
" background-color: "% style.at(SCROLLBAR_CONTROLS) %";"
|
||||
"}"
|
||||
"QLineEdit {"
|
||||
" border-radius: 4px;"
|
||||
" color: "% style.at(LINEDIT_TEXT) %";"
|
||||
" selection-color: "% style.at(LINEDIT_TEXT_SELECTION) %";"
|
||||
" background-color: "% style.at(LINEDIT_BASE) %";"
|
||||
" selection-background-color: "% style.at(LINEDIT_BASE_SELECTION) %";"
|
||||
"}"
|
||||
"QWidget#scrollAreaContents_Paths_Executable,"
|
||||
"QWidget#scrollAreaContents_Paths_ConfigFile,"
|
||||
"QWidget#scrollAreaContents_Paths_AppData {"
|
||||
" border-radius: 8px;"
|
||||
" background-color: "% style.at(PATHS_FRAME_BASE) %";"
|
||||
"}"
|
||||
"QFrame#gline_Version {"
|
||||
" border: 1px solid "% style.at(WINDOW_PRIMARY) %";"
|
||||
" margin: 2px 0px 3px 0px;"
|
||||
" background-color: "% style.at(SEPARATORS) %";"
|
||||
"}";
|
||||
}
|
||||
|
||||
} // namespace StyleSec::Crapinfo
|
||||
|
|
|
@ -8,7 +8,7 @@ class QString;
|
|||
namespace StyleSec::Crapinfo
|
||||
{
|
||||
|
||||
void getStyleSheet( QString& stylesheet );
|
||||
QString getStyleSheet();
|
||||
|
||||
} // namespace StyleSec::Crapinfo
|
||||
|
||||
|
|
|
@ -38,9 +38,7 @@ Crapup::Crapup( QWidget* parent )
|
|||
{
|
||||
this->ui->setupUi(this);
|
||||
|
||||
QString stylesheet;
|
||||
StyleSec::Crapup::getStyleSheet( stylesheet );
|
||||
this->setStyleSheet( stylesheet );
|
||||
this->setStyleSheet( StyleSec::Crapup::getStyleSheet() );
|
||||
|
||||
// fonts
|
||||
const QString ff{ QFontDatabase::applicationFontFamilies(
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
#include "modules/exceptions.h"
|
||||
|
||||
#include <QString>
|
||||
#include <QtCore/QStringBuilder>
|
||||
|
||||
#include <unordered_map>
|
||||
|
||||
|
@ -21,7 +22,7 @@ enum StyleId : uint32_t {
|
|||
|
||||
using StyleMap = std::unordered_map<StyleId, QString>;
|
||||
|
||||
const StyleMap makeStyleMap()
|
||||
StyleMap makeStyleMap()
|
||||
{
|
||||
switch ( GlobalConfigs::window_theme ) {
|
||||
case WindowTheme::Light:
|
||||
|
@ -33,7 +34,6 @@ const StyleMap makeStyleMap()
|
|||
{WINDOW_SECONDARY,
|
||||
"rgb( 230, 230, 230 )"}
|
||||
};
|
||||
break;
|
||||
case WindowTheme::Dark:
|
||||
return {
|
||||
{TEXT,
|
||||
|
@ -43,10 +43,8 @@ const StyleMap makeStyleMap()
|
|||
{WINDOW_SECONDARY,
|
||||
"rgb( 27, 30, 33 )"}
|
||||
};
|
||||
break;
|
||||
default:
|
||||
throw GenericException( "Unexpected WindowTheme: "+std::to_string(static_cast<themes_t>(GlobalConfigs::window_theme)), true );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -56,21 +54,22 @@ const StyleMap makeStyleMap()
|
|||
namespace StyleSec::Crapup
|
||||
{
|
||||
|
||||
void getStyleSheet( QString& stylesheet )
|
||||
QString getStyleSheet()
|
||||
{
|
||||
if ( GlobalConfigs::window_theme != WindowTheme::Native ) {
|
||||
const StyleMap style{ makeStyleMap() };
|
||||
stylesheet =
|
||||
"* {"
|
||||
" color: "+style.at(TEXT)+";"
|
||||
"}"
|
||||
"QWidget#Crapup {"
|
||||
" background-color: "+style.at(WINDOW_SECONDARY)+";"
|
||||
"}"
|
||||
"QFrame {"
|
||||
" background-color: "+style.at(WINDOW_PRIMARY)+";"
|
||||
"}";
|
||||
if ( GlobalConfigs::window_theme == WindowTheme::Native ) {
|
||||
return "";
|
||||
}
|
||||
const StyleMap style{ makeStyleMap() };
|
||||
return
|
||||
"* {"
|
||||
" color: "% style.at(TEXT) %";"
|
||||
"}"
|
||||
"QWidget#Crapup {"
|
||||
" background-color: "% style.at(WINDOW_SECONDARY) %";"
|
||||
"}"
|
||||
"QFrame {"
|
||||
" background-color: "% style.at(WINDOW_PRIMARY) %";"
|
||||
"}";
|
||||
}
|
||||
|
||||
} // namespacce StyleSec::Crapup
|
||||
|
|
|
@ -8,7 +8,7 @@ class QString;
|
|||
namespace StyleSec::Crapup
|
||||
{
|
||||
|
||||
void getStyleSheet( QString& stylesheet );
|
||||
QString getStyleSheet();
|
||||
|
||||
} // namespacce StyleSec::Crapup
|
||||
|
||||
|
|
|
@ -74,7 +74,6 @@ StyleMap makeStyleMap()
|
|||
{BUTTONS_BASE_DISABLED,
|
||||
"rgb( 200, 219, 238 )"}
|
||||
};
|
||||
break;
|
||||
case WindowTheme::Dark:
|
||||
return {
|
||||
{BUTTONS_BASE,
|
||||
|
@ -86,10 +85,8 @@ StyleMap makeStyleMap()
|
|||
{BUTTONS_BASE_DISABLED,
|
||||
"rgb( 21, 71, 21 )"}
|
||||
};
|
||||
break;
|
||||
default:
|
||||
throw GenericException( "Unexpected WindowTheme: "+std::to_string(static_cast<themes_t>(GlobalConfigs::window_theme)), true );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
#include "modules/exceptions.h"
|
||||
|
||||
#include <QString>
|
||||
#include <QtCore/QStringBuilder>
|
||||
|
||||
#include <unordered_map>
|
||||
|
||||
|
@ -431,15 +432,15 @@ StyleMap makeStyleMap()
|
|||
namespace StyleSec
|
||||
{
|
||||
|
||||
void getStyleSheet( QString& stylesheet )
|
||||
QString getStyleSheet()
|
||||
{
|
||||
const QString icons_theme{ GlobalConfigs::icons_set };
|
||||
const StyleMap style{ makeStyleMap() };
|
||||
stylesheet =
|
||||
return
|
||||
////////////////
|
||||
//// SHARED ////
|
||||
"* {"
|
||||
" color: "+style.at(TEXT_PRIMARY)+";"
|
||||
" color: "% style.at(TEXT_PRIMARY) %";"
|
||||
"}"
|
||||
// frames
|
||||
"QFrame,"
|
||||
|
@ -463,10 +464,10 @@ void getStyleSheet( QString& stylesheet )
|
|||
// tooltips
|
||||
"QToolTip {"
|
||||
" padding: 2px;"
|
||||
" border: 1px solid "+style.at(TOOLTIPS_BORDER)+";"
|
||||
" border: 1px solid "% style.at(TOOLTIPS_BORDER) %";"
|
||||
" border-radius: 6px;"
|
||||
" color: "+style.at(TOOLTIPS_TEXT)+";"
|
||||
" background-color: "+style.at(TOOLTIPS_BASE)+";"
|
||||
" color: "% style.at(TOOLTIPS_TEXT) %";"
|
||||
" background-color: "% style.at(TOOLTIPS_BASE) %";"
|
||||
" font-size: 12px;"
|
||||
"}"
|
||||
// check boxes
|
||||
|
@ -475,13 +476,13 @@ void getStyleSheet( QString& stylesheet )
|
|||
" height: 13px;"
|
||||
"}"
|
||||
"QCheckBox::indicator:unchecked {"
|
||||
" image: url(:/icons/icons/"+icons_theme+"/checkbox_unchecked.png);"
|
||||
" image: url(:/icons/icons/"% icons_theme %"/checkbox_unchecked.png);"
|
||||
"}"
|
||||
"QCheckBox::indicator:indeterminate {"
|
||||
" image: url(:/icons/icons/"+icons_theme+"/checkbox_semichecked.png);"
|
||||
" image: url(:/icons/icons/"% icons_theme %"/checkbox_semichecked.png);"
|
||||
"}"
|
||||
"QCheckBox::indicator:checked {"
|
||||
" image: url(:/icons/icons/"+icons_theme+"/checkbox_checked.png);"
|
||||
" image: url(:/icons/icons/"% icons_theme %"/checkbox_checked.png);"
|
||||
"}"
|
||||
// radio buttons
|
||||
"QRadioButton::indicator {"
|
||||
|
@ -489,58 +490,58 @@ void getStyleSheet( QString& stylesheet )
|
|||
" height : 13px;"
|
||||
"}"
|
||||
"QRadioButton::indicator:unchecked {"
|
||||
" image: url(:/icons/icons/"+icons_theme+"/radiobutton_unchecked.png);"
|
||||
" image: url(:/icons/icons/"% icons_theme %"/radiobutton_unchecked.png);"
|
||||
"}"
|
||||
"QRadioButton::indicator:checked {"
|
||||
" image: url(:/icons/icons/"+icons_theme+"/radiobutton_checked.png);"
|
||||
" image: url(:/icons/icons/"% icons_theme %"/radiobutton_checked.png);"
|
||||
"}"
|
||||
// push buttons
|
||||
"QPushButton {"
|
||||
" border: 0px;"
|
||||
" border-radius: 12px;"
|
||||
" background-color: "+style.at(BUTTONS_BASE)+";"
|
||||
" background-color: "% style.at(BUTTONS_BASE) %";"
|
||||
"}"
|
||||
"QPushButton:hover {"
|
||||
" background-color: "+style.at(BUTTONS_BASE_HOVER)+";"
|
||||
" background-color: "% style.at(BUTTONS_BASE_HOVER) %";"
|
||||
"}"
|
||||
"QPushButton::flat {"
|
||||
" background-color: "+style.at(BUTTONS_BASE_FLAT)+";"
|
||||
" background-color: "% style.at(BUTTONS_BASE_FLAT) %";"
|
||||
"}"
|
||||
"QPushButton::disabled {"
|
||||
" background-color: "+style.at(BUTTONS_BASE_DISABLED)+";"
|
||||
" background-color: "% style.at(BUTTONS_BASE_DISABLED) %";"
|
||||
"}"
|
||||
// tool buttons
|
||||
"QToolButton {"
|
||||
" border: 1px solid "+style.at(BORDER_PRIMARY)+";"
|
||||
" border: 1px solid "% style.at(BORDER_PRIMARY) %";"
|
||||
" border-radius: 16px;"
|
||||
" background-color: transparent;"
|
||||
"}"
|
||||
"QToolButton:hover {"
|
||||
" border: 1px solid "+style.at(BORDER_SECONDARY)+";"
|
||||
" border: 1px solid "% style.at(BORDER_SECONDARY) %";"
|
||||
"}"
|
||||
// line edits
|
||||
"QLineEdit {"
|
||||
" padding-left: 4px;"
|
||||
" padding-right: 4px;"
|
||||
" border-radius: 8px;"
|
||||
" color: "+style.at(LINEDIT_TEXT)+";"
|
||||
" selection-color: "+style.at(LINEDIT_TEXT)+";"
|
||||
" background-color: "+style.at(LINEDIT_BASE)+";"
|
||||
" selection-background-color: "+style.at(LINEDIT_BASE_SELECTION)+";"
|
||||
" color: "% style.at(LINEDIT_TEXT) %";"
|
||||
" selection-color: "% style.at(LINEDIT_TEXT) %";"
|
||||
" background-color: "% style.at(LINEDIT_BASE) %";"
|
||||
" selection-background-color: "% style.at(LINEDIT_BASE_SELECTION) %";"
|
||||
"}"
|
||||
"QLineEdit::focus {"
|
||||
" background-color: "+style.at(LINEDIT_BASE_FOCUS)+";"
|
||||
" background-color: "% style.at(LINEDIT_BASE_FOCUS) %";"
|
||||
"}"
|
||||
"QLineEdit:disabled {"
|
||||
" background-color: "+style.at(LINEDIT_BASE_DISABLED)+";"
|
||||
" background-color: "% style.at(LINEDIT_BASE_DISABLED) %";"
|
||||
"}"
|
||||
// combo boxes
|
||||
"QComboBox {"
|
||||
" border-radius: 8px;"
|
||||
" background-color: "+style.at(BOXES_BASE_PRIMARY)+";"
|
||||
" background-color: "% style.at(BOXES_BASE_PRIMARY) %";"
|
||||
"}"
|
||||
"QComboBox::disabled {"
|
||||
" background-color: "+style.at(BOXES_BASE_DISABLED)+";"
|
||||
" background-color: "% style.at(BOXES_BASE_DISABLED) %";"
|
||||
"}"
|
||||
"QComboBox::drop-down {"
|
||||
" border-top-right-radius: 8px;"
|
||||
|
@ -548,33 +549,33 @@ void getStyleSheet( QString& stylesheet )
|
|||
" border-left: 3px solid"
|
||||
" QLinearGradient("
|
||||
" x0:0, y0:0, x1:0, y1:1,"
|
||||
" stop:0 "+style.at(BOXES_BASE_PRIMARY)+","
|
||||
" stop:0.1 "+style.at(BOXES_BASE_PRIMARY)+","
|
||||
" stop:0.5 "+style.at(BOXES_DECO)+","
|
||||
" stop:0.9 "+style.at(BOXES_BASE_PRIMARY)+","
|
||||
" stop:1 "+style.at(BOXES_BASE_PRIMARY)+");"
|
||||
" background-color: "+style.at(BOXES_BASE_PRIMARY)+";"
|
||||
" selection-background-color: "+style.at(BOXES_BASE_PRIMARY)+";"
|
||||
" stop:0 "% style.at(BOXES_BASE_PRIMARY) %","
|
||||
" stop:0.1 "% style.at(BOXES_BASE_PRIMARY) %","
|
||||
" stop:0.5 "% style.at(BOXES_DECO) %","
|
||||
" stop:0.9 "% style.at(BOXES_BASE_PRIMARY) %","
|
||||
" stop:1 "% style.at(BOXES_BASE_PRIMARY) %");"
|
||||
" background-color: "% style.at(BOXES_BASE_PRIMARY) %";"
|
||||
" selection-background-color: "% style.at(BOXES_BASE_PRIMARY) %";"
|
||||
"}"
|
||||
"QComboBox::drop-down::disabled {"
|
||||
" border-left-color: "+style.at(BOXES_BASE_DISABLED)+";"
|
||||
" background-color: "+style.at(BOXES_BASE_DISABLED)+";"
|
||||
" border-left-color: "% style.at(BOXES_BASE_DISABLED) %";"
|
||||
" background-color: "% style.at(BOXES_BASE_DISABLED) %";"
|
||||
"}"
|
||||
"QComboBox::down-arrow {"
|
||||
" image: url(:/icons/icons/"+icons_theme+"/combobox_arrow.png);"
|
||||
" image: url(:/icons/icons/"% icons_theme %"/combobox_arrow.png);"
|
||||
"}"
|
||||
"QComboBox::down-arrow::disabled {"
|
||||
" image: url();"
|
||||
"}"
|
||||
"QComboBox:on {"
|
||||
" border-bottom-left-radius: 0px;"
|
||||
" border-bottom: 2px solid "+style.at(BOXES_DECO)+";"
|
||||
" background-color: "+style.at(BOXES_BASE_SECONDARY)+";"
|
||||
" border-bottom: 2px solid "% style.at(BOXES_DECO) %";"
|
||||
" background-color: "% style.at(BOXES_BASE_SECONDARY) %";"
|
||||
"}"
|
||||
"QComboBox::drop-down:on {"
|
||||
" border-bottom-right-radius: 0px;"
|
||||
" border-left-color: transparent;"
|
||||
" background-color: "+style.at(BOXES_BASE_SECONDARY)+";"
|
||||
" background-color: "% style.at(BOXES_BASE_SECONDARY) %";"
|
||||
"}"
|
||||
"QComboBox::down-arrow:on {"
|
||||
" image: url();"
|
||||
|
@ -582,49 +583,49 @@ void getStyleSheet( QString& stylesheet )
|
|||
"QComboBox QAbstractItemView {"
|
||||
" border-bottom-left-radius: 8px;"
|
||||
" border-bottom-right-radius: 8px;"
|
||||
" background-color: "+style.at(BOXES_BASE_PRIMARY)+";"
|
||||
" selection-background-color: "+style.at(BOXES_BASE_SELECTION)+";"
|
||||
" background-color: "% style.at(BOXES_BASE_PRIMARY) %";"
|
||||
" selection-background-color: "% style.at(BOXES_BASE_SELECTION) %";"
|
||||
"}"
|
||||
// spin boxes
|
||||
"QSpinBox {"
|
||||
" border-radius: 4px;"
|
||||
" color: "+style.at(LINEDIT_TEXT)+";"
|
||||
" background-color: "+style.at(LINEDIT_BASE)+";"
|
||||
" selection-color: "+style.at(LINEDIT_TEXT)+";"
|
||||
" selection-background-color: "+style.at(LINEDIT_BASE_SELECTION)+";"
|
||||
" color: "% style.at(LINEDIT_TEXT) %";"
|
||||
" background-color: "% style.at(LINEDIT_BASE) %";"
|
||||
" selection-color: "% style.at(LINEDIT_TEXT) %";"
|
||||
" selection-background-color: "% style.at(LINEDIT_BASE_SELECTION) %";"
|
||||
"}"
|
||||
"QSpinBox::focus {"
|
||||
" background-color: "+style.at(LINEDIT_BASE_FOCUS)+";"
|
||||
" background-color: "% style.at(LINEDIT_BASE_FOCUS) %";"
|
||||
"}"
|
||||
"QSpinBox::disabled {"
|
||||
" border-color: "+style.at(BOXES_BASE_DISABLED)+";"
|
||||
" color: "+style.at(TEXT_DISABLED)+";"
|
||||
" background-color: "+style.at(BOXES_BASE_DISABLED)+";"
|
||||
" border-color: "% style.at(BOXES_BASE_DISABLED) %";"
|
||||
" color: "% style.at(TEXT_DISABLED) %";"
|
||||
" background-color: "% style.at(BOXES_BASE_DISABLED) %";"
|
||||
"}"
|
||||
"QSpinBox::up-button,"
|
||||
"QSpinBox::down-button {"
|
||||
" padding: 2px;"
|
||||
" border-left: 2px solid "+style.at(BOXES_DECO)+";"
|
||||
" background-color: "+style.at(BOXES_BASE_SECONDARY)+";"
|
||||
" border-left: 2px solid "% style.at(BOXES_DECO) %";"
|
||||
" background-color: "% style.at(BOXES_BASE_SECONDARY) %";"
|
||||
"}"
|
||||
"QSpinBox::up-button:hover,"
|
||||
"QSpinBox::down-button:hover {"
|
||||
" background-color: "+style.at(BOXES_BASE_SELECTION)+";"
|
||||
" background-color: "% style.at(BOXES_BASE_SELECTION) %";"
|
||||
"}"
|
||||
"QSpinBox::up-button:off,"
|
||||
"QSpinBox::down-button:off {"
|
||||
" background-color: "+style.at(BOXES_BASE_DISABLED)+";"
|
||||
" background-color: "% style.at(BOXES_BASE_DISABLED) %";"
|
||||
"}"
|
||||
"QSpinBox::up-button:disabled,"
|
||||
"QSpinBox::down-button:disabled {"
|
||||
" border-left-color: "+style.at(BOXES_BASE_PRIMARY)+";"
|
||||
" background-color: "+style.at(BOXES_BASE_DISABLED)+";"
|
||||
" border-left-color: "% style.at(BOXES_BASE_PRIMARY) %";"
|
||||
" background-color: "% style.at(BOXES_BASE_DISABLED) %";"
|
||||
"}"
|
||||
"QSpinBox::up-arrow {"
|
||||
" width: 7px;"
|
||||
" height: 7px;"
|
||||
" padding: 2px;"
|
||||
" image: url(:/icons/icons/"+icons_theme+"/spinbox_add.png);"
|
||||
" image: url(:/icons/icons/"% icons_theme %"/spinbox_add.png);"
|
||||
"}"
|
||||
"QSpinBox::up-arrow:off,"
|
||||
"QSpinBox::up-arrow:disabled {"
|
||||
|
@ -634,7 +635,7 @@ void getStyleSheet( QString& stylesheet )
|
|||
" width: 7px;"
|
||||
" height: 7px;"
|
||||
" padding: 2px;"
|
||||
" image: url(:/icons/icons/"+icons_theme+"/spinbox_sub.png);"
|
||||
" image: url(:/icons/icons/"% icons_theme %"/spinbox_sub.png);"
|
||||
"}"
|
||||
"QSpinBox::down-arrow:off,"
|
||||
"QSpinBox::down-arrow:disabled {"
|
||||
|
@ -643,12 +644,12 @@ void getStyleSheet( QString& stylesheet )
|
|||
// scroll bars
|
||||
"QScrollBar:horizontal {"
|
||||
" height: 12px;"
|
||||
" background-color: "+style.at(SCROLLBAR_BASE)+";"
|
||||
" background-color: "% style.at(SCROLLBAR_BASE) %";"
|
||||
"}"
|
||||
"QScrollBar::handle:horizontal {"
|
||||
" min-width: 16px;"
|
||||
" margin: 5px 0px 5px 0px;"
|
||||
" background-color: "+style.at(SCROLLBAR_HANDLER)+";"
|
||||
" background-color: "% style.at(SCROLLBAR_HANDLER) %";"
|
||||
"}"
|
||||
"QScrollBar::handle:horizontal:hover {"
|
||||
" margin: 4px 0px 4px 0px;"
|
||||
|
@ -656,12 +657,12 @@ void getStyleSheet( QString& stylesheet )
|
|||
"}"
|
||||
"QScrollBar:vertical {"
|
||||
" width: 12px;"
|
||||
" background-color: "+style.at(SCROLLBAR_BASE)+";"
|
||||
" background-color: "% style.at(SCROLLBAR_BASE) %";"
|
||||
"}"
|
||||
"QScrollBar::handle:vertical {"
|
||||
" min-height: 16px;"
|
||||
" margin: 0px 5px 0px 5px;"
|
||||
" background-color: "+style.at(SCROLLBAR_HANDLER)+";"
|
||||
" background-color: "% style.at(SCROLLBAR_HANDLER) %";"
|
||||
"}"
|
||||
"QScrollBar::handle:vertical:hover {"
|
||||
" margin: 0px 4px 0px 4px;"
|
||||
|
@ -675,48 +676,48 @@ void getStyleSheet( QString& stylesheet )
|
|||
"QScrollBar::left-arrow,"
|
||||
"QScrollBar::right-arrow {"
|
||||
" border: 0px;"
|
||||
" background-color: "+style.at(SCROLLBAR_CONTROLS)+";"
|
||||
" background-color: "% style.at(SCROLLBAR_CONTROLS) %";"
|
||||
"}"
|
||||
// slider
|
||||
"QSlider::groove:horizontal {"
|
||||
" height: 2px;"
|
||||
" border: 1px solid "+style.at(SLIDER_BAR_ACTIVE_BORDER)+";"
|
||||
" background-color: "+style.at(SLIDER_BAR_ACTIVE)+";"
|
||||
" border: 1px solid "% style.at(SLIDER_BAR_ACTIVE_BORDER) %";"
|
||||
" background-color: "% style.at(SLIDER_BAR_ACTIVE) %";"
|
||||
"}"
|
||||
"QSlider::add-page:horizontal {"
|
||||
" border: 0px;"
|
||||
" background-color: "+style.at(SLIDER_BAR_INACTIVE)+";"
|
||||
" background-color: "% style.at(SLIDER_BAR_INACTIVE) %";"
|
||||
"}"
|
||||
"QSlider::sub-page:horizontal {"
|
||||
" border: 1px solid "+style.at(SLIDER_BAR_ACTIVE_BORDER)+";"
|
||||
" background-color: "+style.at(SLIDER_BAR_ACTIVE)+";"
|
||||
" border: 1px solid "% style.at(SLIDER_BAR_ACTIVE_BORDER) %";"
|
||||
" background-color: "% style.at(SLIDER_BAR_ACTIVE) %";"
|
||||
"}"
|
||||
"QSlider::handle:horizontal {"
|
||||
" width: 12px;"
|
||||
" margin: -5px 0px;"
|
||||
" border: 1px solid "+style.at(SLIDER_HANDLER_BORDER)+";"
|
||||
" border: 1px solid "% style.at(SLIDER_HANDLER_BORDER) %";"
|
||||
" border-radius: 4px;"
|
||||
" background-color: "+style.at(SLIDER_HANDLER)+";"
|
||||
" background-color: "% style.at(SLIDER_HANDLER) %";"
|
||||
"}"
|
||||
"QSlider::handle:hover:horizontal {"
|
||||
" border: 1px solid "+style.at(SLIDER_HANDLER_BORDER_HOVER)+";"
|
||||
" border: 1px solid "% style.at(SLIDER_HANDLER_BORDER_HOVER) %";"
|
||||
"}"
|
||||
// charts
|
||||
"QGraphicsView {"
|
||||
" border-radius: 8px;"
|
||||
" background-color: "+style.at(CHARTS_CONTOUR)+";"
|
||||
" background-color: "% style.at(CHARTS_CONTOUR) %";"
|
||||
"}"
|
||||
// tables, trees and headers
|
||||
"QTreeView,"
|
||||
"QListView,"
|
||||
"QTableView {"
|
||||
" border-radius: 8px;"
|
||||
" background-color: "+style.at(TABLES_BASE)+";"
|
||||
" selection-color: "+style.at(TABLES_TEXT_SELECTION)+";"
|
||||
" selection-background-color: "+style.at(TABLES_BASE_SELECTION)+";"
|
||||
" background-color: "% style.at(TABLES_BASE) %";"
|
||||
" selection-color: "% style.at(TABLES_TEXT_SELECTION) %";"
|
||||
" selection-background-color: "% style.at(TABLES_BASE_SELECTION) %";"
|
||||
"}"
|
||||
"QTableView {"
|
||||
" gridline-color: "+style.at(TABLES_GRIDLINE)+";"
|
||||
" gridline-color: "% style.at(TABLES_GRIDLINE) %";"
|
||||
"}"
|
||||
"QTreeView QScrollBar::handle:vertical,"
|
||||
"QTableView QScrollBar::handle:vertical,"
|
||||
|
@ -730,8 +731,8 @@ void getStyleSheet( QString& stylesheet )
|
|||
" height: 24px;"
|
||||
" border: 0px;"
|
||||
" border-top-right-radius: 8px;"
|
||||
" border-bottom: 2px solid "+style.at(TABLES_DECO)+";"
|
||||
" background-color: "+style.at(TABLES_HEADER)+";"
|
||||
" border-bottom: 2px solid "% style.at(TABLES_DECO) %";"
|
||||
" background-color: "% style.at(TABLES_HEADER) %";"
|
||||
"}"
|
||||
"QHeaderView::section {"
|
||||
" height: 24px;"
|
||||
|
@ -739,40 +740,40 @@ void getStyleSheet( QString& stylesheet )
|
|||
"QHeaderView::section:first {"
|
||||
" padding-left: 6px;"
|
||||
" border-top-left-radius: 6px;"
|
||||
" border-right: 1px solid "+style.at(TABLES_HEADER_SEPARATOR)+";"
|
||||
" border-bottom: 2px solid "+style.at(TABLES_DECO)+";"
|
||||
" background-color: "+style.at(TABLES_HEADER)+";"
|
||||
" border-right: 1px solid "% style.at(TABLES_HEADER_SEPARATOR) %";"
|
||||
" border-bottom: 2px solid "% style.at(TABLES_DECO) %";"
|
||||
" background-color: "% style.at(TABLES_HEADER) %";"
|
||||
"}"
|
||||
"QHeaderView::section:middle {"
|
||||
" padding-left: 6px;"
|
||||
" border-radius: 0px;" // leave this here or borders won't display
|
||||
" border-right: 1px solid "+style.at(TABLES_HEADER_SEPARATOR)+";"
|
||||
" border-bottom: 2px solid "+style.at(TABLES_DECO)+";"
|
||||
" background-color: "+style.at(TABLES_HEADER)+";"
|
||||
" border-right: 1px solid "% style.at(TABLES_HEADER_SEPARATOR) %";"
|
||||
" border-bottom: 2px solid "% style.at(TABLES_DECO) %";"
|
||||
" background-color: "% style.at(TABLES_HEADER) %";"
|
||||
"}"
|
||||
"QHeaderView::section:last {"
|
||||
" padding-left: 6px;"
|
||||
" border-top-right-radius: 0px;"
|
||||
" border-bottom: 2px solid "+style.at(TABLES_DECO)+";"
|
||||
" background-color: "+style.at(TABLES_HEADER)+";"
|
||||
" border-bottom: 2px solid "% style.at(TABLES_DECO) %";"
|
||||
" background-color: "% style.at(TABLES_HEADER) %";"
|
||||
"}"
|
||||
"QHeaderView::section:first::hover {"
|
||||
" background-color: "+style.at(TABLES_HEADER_HOVER)+";"
|
||||
" background-color: "% style.at(TABLES_HEADER_HOVER) %";"
|
||||
"}"
|
||||
"QHeaderView::section:middle::hover {"
|
||||
" background-color: "+style.at(TABLES_HEADER_HOVER)+";"
|
||||
" background-color: "% style.at(TABLES_HEADER_HOVER) %";"
|
||||
"}"
|
||||
"QHeaderView::section:last::hover {"
|
||||
" background-color: "+style.at(TABLES_HEADER_HOVER)+";"
|
||||
" background-color: "% style.at(TABLES_HEADER_HOVER) %";"
|
||||
"}"
|
||||
// text browser
|
||||
"QTextBrowser {"
|
||||
" border: 4px solid "+style.at(TEXTBROWSER_BORDER)+";"
|
||||
" border: 4px solid "% style.at(TEXTBROWSER_BORDER) %";"
|
||||
" border-radius: 8px;"
|
||||
" color: "+style.at(TEXTBROWSER_TEXT)+";"
|
||||
" background-color: "+style.at(TEXTBROWSER_BASE)+";"
|
||||
" selection-color: "+style.at(TEXTBROWSER_TEXT_SELECTION)+";"
|
||||
" selection-background-color: "+style.at(TEXTBROWSER_BASE_SELECTION)+";"
|
||||
" color: "% style.at(TEXTBROWSER_TEXT) %";"
|
||||
" background-color: "% style.at(TEXTBROWSER_BASE) %";"
|
||||
" selection-color: "% style.at(TEXTBROWSER_TEXT_SELECTION) %";"
|
||||
" selection-background-color: "% style.at(TEXTBROWSER_BASE_SELECTION) %";"
|
||||
"}"
|
||||
"QTextBrowser QScrollBar::handle:vertical {"
|
||||
" padding: 12px;"
|
||||
|
@ -780,17 +781,17 @@ void getStyleSheet( QString& stylesheet )
|
|||
//////////////
|
||||
//// MENU ////
|
||||
"QMenuBar {"
|
||||
" color: "+style.at(MENU_TEXT)+";"
|
||||
" background-color: "+style.at(MENU_BASE)+";"
|
||||
" color: "% style.at(MENU_TEXT) %";"
|
||||
" background-color: "% style.at(MENU_BASE) %";"
|
||||
"}"
|
||||
"QMenuBar::item:selected {"
|
||||
" color: "+style.at(MENU_TEXT)+";"
|
||||
" background-color: "+style.at(MENU_BASE_HOVER)+";"
|
||||
" color: "% style.at(MENU_TEXT) %";"
|
||||
" background-color: "% style.at(MENU_BASE_HOVER) %";"
|
||||
" border-radius: 4px;"
|
||||
"}"
|
||||
"QMenuBar::item:pressed {"
|
||||
" color: "+style.at(MENU_DROPDOWN_TEXT)+";"
|
||||
" background-color: "+style.at(MENU_DROPDOWN_BASE)+";"
|
||||
" color: "% style.at(MENU_DROPDOWN_TEXT) %";"
|
||||
" background-color: "% style.at(MENU_DROPDOWN_BASE) %";"
|
||||
" border-radius: 0px;"
|
||||
" border-top-left-radius: 4px;"
|
||||
" border-top-right-radius: 4px;"
|
||||
|
@ -800,105 +801,105 @@ void getStyleSheet( QString& stylesheet )
|
|||
" border-top-right-radius: 4px;"
|
||||
" border-bottom-right-radius: 4px;"
|
||||
" border-bottom-left-radius: 4px;"
|
||||
" color: "+style.at(MENU_DROPDOWN_TEXT)+";"
|
||||
" background-color: "+style.at(MENU_DROPDOWN_BASE)+";"
|
||||
" color: "% style.at(MENU_DROPDOWN_TEXT) %";"
|
||||
" background-color: "% style.at(MENU_DROPDOWN_BASE) %";"
|
||||
"}"
|
||||
"QMenu::item:selected {"
|
||||
" background-color: "+style.at(MENU_DROPDOWN_BASE_SELECTION)+";"
|
||||
" background-color: "% style.at(MENU_DROPDOWN_BASE_SELECTION) %";"
|
||||
"}"
|
||||
//////////////
|
||||
//// MAIN ////
|
||||
// window
|
||||
"QWidget#mainwidget {"
|
||||
" background-color: "+style.at(WINDOW_BASE_SECONDARY)+";"
|
||||
" background-color: "% style.at(WINDOW_BASE_SECONDARY) %";"
|
||||
"}"
|
||||
// tabs buttons
|
||||
"QFrame#frame_Tabs_Buttons {"
|
||||
" border: 0px;"
|
||||
" background-color: "+style.at(WINDOW_BASE_SECONDARY)+";"
|
||||
" background-color: "% style.at(WINDOW_BASE_SECONDARY) %";"
|
||||
"}"
|
||||
"QPushButton#button_Tab_Log,"
|
||||
"QPushButton#button_Tab_View,"
|
||||
"QPushButton#button_Tab_Conf {"
|
||||
" border: 0px;"
|
||||
" border-radius: 0px;"
|
||||
" background-color: "+style.at(WINDOW_BASE_PRIMARY)+";"
|
||||
" background-color: "% style.at(WINDOW_BASE_PRIMARY) %";"
|
||||
"}"
|
||||
"QPushButton#button_Tab_Log::flat,"
|
||||
"QPushButton#button_Tab_View::flat,"
|
||||
"QPushButton#button_Tab_Conf::flat {"
|
||||
" background-color: "+style.at(WINDOW_BASE_SECONDARY)+";"
|
||||
" background-color: "% style.at(WINDOW_BASE_SECONDARY) %";"
|
||||
"}"
|
||||
"QPushButton#button_Tab_Log::flat:hover {"
|
||||
" background-color: QLinearGradient("
|
||||
" x1:0, y1:0.5, x2:1, y2:0.5,"
|
||||
" stop:0 "+style.at(SECTIONS_LOG_HOVER)+","
|
||||
" stop:0.4 "+style.at(SECTIONS_LOG_HOVER)+","
|
||||
" stop:1 "+style.at(WINDOW_BASE_SECONDARY)+");"
|
||||
" stop:0 "% style.at(SECTIONS_LOG_HOVER) %","
|
||||
" stop:0.4 "% style.at(SECTIONS_LOG_HOVER) %","
|
||||
" stop:1 "% style.at(WINDOW_BASE_SECONDARY) %");"
|
||||
"}"
|
||||
"QPushButton#button_Tab_View::flat:hover {"
|
||||
" background-color: QLinearGradient("
|
||||
" x1:0, y1:0.5, x2:1, y2:0.5,"
|
||||
" stop:0 "+style.at(SECTIONS_VIEW_HOVER)+","
|
||||
" stop:0.4 "+style.at(SECTIONS_VIEW_HOVER)+","
|
||||
" stop:1 "+style.at(WINDOW_BASE_SECONDARY)+");"
|
||||
" stop:0 "% style.at(SECTIONS_VIEW_HOVER) %","
|
||||
" stop:0.4 "% style.at(SECTIONS_VIEW_HOVER) %","
|
||||
" stop:1 "% style.at(WINDOW_BASE_SECONDARY) %");"
|
||||
"}"
|
||||
"QPushButton#button_Tab_Conf::flat:hover {"
|
||||
" background-color: QLinearGradient("
|
||||
" x1:0, y1:0.5, x2:1, y2:0.5,"
|
||||
" stop:0 "+style.at(SECTIONS_CONF_HOVER)+","
|
||||
" stop:0.4 "+style.at(SECTIONS_CONF_HOVER)+","
|
||||
" stop:1 "+style.at(WINDOW_BASE_SECONDARY)+");"
|
||||
" stop:0 "% style.at(SECTIONS_CONF_HOVER) %","
|
||||
" stop:0.4 "% style.at(SECTIONS_CONF_HOVER) %","
|
||||
" stop:1 "% style.at(WINDOW_BASE_SECONDARY) %");"
|
||||
"}"
|
||||
// tabs pages
|
||||
"QStackedWidget#stackedPages_Sections {"
|
||||
" background-color: "+style.at(WINDOW_BASE_PRIMARY)+";"
|
||||
" background-color: "% style.at(WINDOW_BASE_PRIMARY) %";"
|
||||
"}"
|
||||
//////////////
|
||||
//// LOGS ////
|
||||
// switcher buttons
|
||||
"QPushButton#button_Logs_Down {"
|
||||
" border-radius: 16px;"
|
||||
" background-color: "+style.at(WINDOW_BASE_PRIMARY)+";"
|
||||
" background-color: "% style.at(WINDOW_BASE_PRIMARY) %";"
|
||||
"}"
|
||||
"QPushButton#button_Logs_Down:hover {"
|
||||
" background-color: "+style.at(WINDOW_BASE_SECONDARY)+";"
|
||||
" icon: url(:/icons/icons/"+icons_theme+"/down.png);"
|
||||
" background-color: "% style.at(WINDOW_BASE_SECONDARY) %";"
|
||||
" icon: url(:/icons/icons/"% icons_theme %"/down.png);"
|
||||
"}"
|
||||
"QPushButton#button_Logs_Up {"
|
||||
" border-radius: 16px;"
|
||||
" background-color: "+style.at(WINDOW_BASE_PRIMARY)+";"
|
||||
" background-color: "% style.at(WINDOW_BASE_PRIMARY) %";"
|
||||
"}"
|
||||
"QPushButton#button_Logs_Up::hover {"
|
||||
" background-color: "+style.at(WINDOW_BASE_SECONDARY)+";"
|
||||
" icon: url(:/icons/icons/"+icons_theme+"/up.png);"
|
||||
" background-color: "% style.at(WINDOW_BASE_SECONDARY) %";"
|
||||
" icon: url(:/icons/icons/"% icons_theme %"/up.png);"
|
||||
"}"
|
||||
// web servers buttons
|
||||
"QPushButton#button_LogFiles_Apache,"
|
||||
"QPushButton#button_LogFiles_Nginx,"
|
||||
"QPushButton#button_LogFiles_Iis {"
|
||||
" border-radius: 16px;"
|
||||
" background-color: "+style.at(WEB_SERVERS_BUTTONS_BASE)+";"
|
||||
" background-color: "% style.at(WEB_SERVERS_BUTTONS_BASE) %";"
|
||||
"}"
|
||||
"QPushButton#button_LogFiles_Apache::flat,"
|
||||
"QPushButton#button_LogFiles_Nginx::flat,"
|
||||
"QPushButton#button_LogFiles_Iis::flat {"
|
||||
" border: 1px solid "+style.at(WEB_SERVERS_BUTTONS_BORDER_FLAT)+";"
|
||||
" color: "+style.at(WEB_SERVERS_BUTTONS_TEXT_FLAT)+";"
|
||||
" background-color: "+style.at(WEB_SERVERS_BUTTONS_BASE_FLAT)+";"
|
||||
" border: 1px solid "% style.at(WEB_SERVERS_BUTTONS_BORDER_FLAT) %";"
|
||||
" color: "% style.at(WEB_SERVERS_BUTTONS_TEXT_FLAT) %";"
|
||||
" background-color: "% style.at(WEB_SERVERS_BUTTONS_BASE_FLAT) %";"
|
||||
"}"
|
||||
"QPushButton#button_LogFiles_Apache::flat:hover,"
|
||||
"QPushButton#button_LogFiles_Nginx::flat:hover,"
|
||||
"QPushButton#button_LogFiles_Iis::flat:hover {"
|
||||
" border: 2px solid "+style.at(WEB_SERVERS_BUTTONS_BORDER_FLAT_HOVER)+";"
|
||||
" color: "+style.at(WEB_SERVERS_BUTTONS_TEXT_FLAT_HOVER)+";"
|
||||
" border: 2px solid "% style.at(WEB_SERVERS_BUTTONS_BORDER_FLAT_HOVER) %";"
|
||||
" color: "% style.at(WEB_SERVERS_BUTTONS_TEXT_FLAT_HOVER) %";"
|
||||
"}"
|
||||
"QPushButton#button_LogFiles_Apache::disabled,"
|
||||
"QPushButton#button_LogFiles_Nginx::disabled,"
|
||||
"QPushButton#button_LogFiles_Iis::disabled {"
|
||||
" border: 0px;"
|
||||
" color: "+style.at(WEB_SERVERS_BUTTONS_TEXT_DISABLED)+";"
|
||||
" background-color: "+style.at(WEB_SERVERS_BUTTONS_BASE_DISABLED)+";"
|
||||
" color: "% style.at(WEB_SERVERS_BUTTONS_TEXT_DISABLED) %";"
|
||||
" background-color: "% style.at(WEB_SERVERS_BUTTONS_BASE_DISABLED) %";"
|
||||
"}"
|
||||
// logs list
|
||||
"QTreeWidget#listLogFiles::indicator {"
|
||||
|
@ -908,10 +909,10 @@ void getStyleSheet( QString& stylesheet )
|
|||
" margin-right: 4px;"
|
||||
"}"
|
||||
"QTreeWidget#listLogFiles::indicator:unchecked {"
|
||||
" image: url(:/icons/icons/"+icons_theme+"/checkbox_unchecked.png);"
|
||||
" image: url(:/icons/icons/"% icons_theme %"/checkbox_unchecked.png);"
|
||||
"}"
|
||||
"QTreeWidget#listLogFiles::indicator:checked {"
|
||||
" image: url(:/icons/icons/"+icons_theme+"/checkbox_checked.png);"
|
||||
" image: url(:/icons/icons/"% icons_theme %"/checkbox_checked.png);"
|
||||
"}"
|
||||
// view file button
|
||||
"QPushButton#button_LogFiles_ViewFile {"
|
||||
|
@ -919,26 +920,26 @@ void getStyleSheet( QString& stylesheet )
|
|||
"}"
|
||||
// refresh button
|
||||
"QPushButton#button_LogFiles_RefreshList {"
|
||||
" border: 1px solid "+style.at(BORDER_PRIMARY)+";"
|
||||
" border: 1px solid "% style.at(BORDER_PRIMARY) %";"
|
||||
" border-radius: 16px;"
|
||||
" background-color: transparent;"
|
||||
"}"
|
||||
"QPushButton#button_LogFiles_RefreshList:hover {"
|
||||
" border: 1px solid "+style.at(BORDER_SECONDARY)+";"
|
||||
" border: 1px solid "% style.at(BORDER_SECONDARY) %";"
|
||||
"}"
|
||||
// parse logs button
|
||||
"QPushButton#button_MakeStats_Start {"
|
||||
" border-radius: 32px;"
|
||||
"}"
|
||||
"QPushButton#button_MakeStats_Start::disabled {"
|
||||
" color: "+style.at(TEXT_DISABLED)+";"
|
||||
" color: "% style.at(TEXT_DISABLED) %";"
|
||||
"}"
|
||||
///////////////
|
||||
//// STATS ////
|
||||
// statistics tabs buttons
|
||||
"QFrame#frame_Stats_Buttons {"
|
||||
" border: 0px;"
|
||||
" background-color: "+style.at(WINDOW_BASE_PRIMARY)+";"
|
||||
" background-color: "% style.at(WINDOW_BASE_PRIMARY) %";"
|
||||
"}"
|
||||
"QPushButton#button_Tab_StatsWarn,"
|
||||
"QPushButton#button_Tab_StatsSpeed,"
|
||||
|
@ -947,7 +948,7 @@ void getStyleSheet( QString& stylesheet )
|
|||
"QPushButton#button_Tab_StatsRelat,"
|
||||
"QPushButton#button_Tab_StatsGlob {"
|
||||
" border-radius: 22px;"
|
||||
" background-color: "+style.at(STATS_SWITCH_BUTTONS)+";"
|
||||
" background-color: "% style.at(STATS_SWITCH_BUTTONS) %";"
|
||||
"}"
|
||||
"QPushButton#button_Tab_StatsWarn::flat,"
|
||||
"QPushButton#button_Tab_StatsSpeed::flat,"
|
||||
|
@ -955,7 +956,7 @@ void getStyleSheet( QString& stylesheet )
|
|||
"QPushButton#button_Tab_StatsDay::flat,"
|
||||
"QPushButton#button_Tab_StatsRelat::flat,"
|
||||
"QPushButton#button_Tab_StatsGlob::flat {"
|
||||
" background-color: "+style.at(STATS_SWITCH_BUTTONS_FLAT)+";"
|
||||
" background-color: "% style.at(STATS_SWITCH_BUTTONS_FLAT) %";"
|
||||
"}"
|
||||
"QPushButton#button_Tab_StatsWarn::flat:hover,"
|
||||
"QPushButton#button_Tab_StatsSpeed::flat:hover,"
|
||||
|
@ -963,11 +964,11 @@ void getStyleSheet( QString& stylesheet )
|
|||
"QPushButton#button_Tab_StatsDay::flat:hover,"
|
||||
"QPushButton#button_Tab_StatsRelat::flat:hover,"
|
||||
"QPushButton#button_Tab_StatsGlob::flat:hover {"
|
||||
" background-color: "+style.at(STATS_SWITCH_BUTTONS_FLAT_HOVER)+";"
|
||||
" background-color: "% style.at(STATS_SWITCH_BUTTONS_FLAT_HOVER) %";"
|
||||
"}"
|
||||
// stacked pages
|
||||
"QStackedWidget#stackedPages_Stats {"
|
||||
" border-top: 2px solid "+style.at(STATS_SWITCH_BUTTONS)+";"
|
||||
" border-top: 2px solid "% style.at(STATS_SWITCH_BUTTONS) %";"
|
||||
" border-radius: 12px;"
|
||||
"}"
|
||||
// stats warn
|
||||
|
@ -976,17 +977,17 @@ void getStyleSheet( QString& stylesheet )
|
|||
" height: 13px;"
|
||||
"}"
|
||||
"QTableWidget#table_StatsWarn::indicator:unchecked {"
|
||||
" image: url(:/icons/icons/"+icons_theme+"/checkbox_unchecked.png);"
|
||||
" image: url(:/icons/icons/"% icons_theme %"/checkbox_unchecked.png);"
|
||||
"}"
|
||||
"QTableWidget#table_StatsWarn::indicator:checked {"
|
||||
" image: url(:/icons/icons/"+icons_theme+"/checkbox_checked.png);"
|
||||
" image: url(:/icons/icons/"% icons_theme %"/checkbox_checked.png);"
|
||||
"}"
|
||||
"QTableWidget#table_StatsWarn QScrollBar::handle:vertical {"
|
||||
" padding: 12px;"
|
||||
"}"
|
||||
// stats count
|
||||
"QScrollArea#scrollArea_StatsCount {"
|
||||
" background-color: "+style.at(WINDOW_BASE_PRIMARY)+";"
|
||||
" background-color: "% style.at(WINDOW_BASE_PRIMARY) %";"
|
||||
"}"
|
||||
"QWidget#scrollAreaContent_StatsCount {"
|
||||
" background-color: transparent;"
|
||||
|
@ -1001,7 +1002,7 @@ void getStyleSheet( QString& stylesheet )
|
|||
"QPushButton#button_StatsCount_UserAgent,"
|
||||
"QPushButton#button_StatsCount_Client {"
|
||||
" border-radius: 8px;"
|
||||
" background-color: "+style.at(BUTTONS_BASE_DISABLED)+";"
|
||||
" background-color: "% style.at(BUTTONS_BASE_DISABLED) %";"
|
||||
"}"
|
||||
"QPushButton#button_StatsCount_Protocol::flat,"
|
||||
"QPushButton#button_StatsCount_Method::flat,"
|
||||
|
@ -1012,7 +1013,7 @@ void getStyleSheet( QString& stylesheet )
|
|||
"QPushButton#button_StatsCount_Cookie::flat,"
|
||||
"QPushButton#button_StatsCount_UserAgent::flat,"
|
||||
"QPushButton#button_StatsCount_Client::flat {"
|
||||
" background-color: "+style.at(WINDOW_BASE_SECONDARY)+";"
|
||||
" background-color: "% style.at(WINDOW_BASE_SECONDARY) %";"
|
||||
"}"
|
||||
"QPushButton#button_StatsCount_Protocol::flat:hover,"
|
||||
"QPushButton#button_StatsCount_Method::flat:hover,"
|
||||
|
@ -1023,47 +1024,47 @@ void getStyleSheet( QString& stylesheet )
|
|||
"QPushButton#button_StatsCount_Cookie::flat:hover,"
|
||||
"QPushButton#button_StatsCount_UserAgent::flat:hover,"
|
||||
"QPushButton#button_StatsCount_Client::flat:hover {"
|
||||
" background-color: "+style.at(BUTTONS_BASE)+";"
|
||||
" background-color: "% style.at(BUTTONS_BASE) %";"
|
||||
"}"
|
||||
// stats globals
|
||||
"QPushButton#button_StatsGlob_Apache,"
|
||||
"QPushButton#button_StatsGlob_Nginx,"
|
||||
"QPushButton#button_StatsGlob_Iis {"
|
||||
" border-radius: 16px;"
|
||||
" background-color: "+style.at(WEB_SERVERS_BUTTONS_BASE)+";"
|
||||
" background-color: "% style.at(WEB_SERVERS_BUTTONS_BASE) %";"
|
||||
"}"
|
||||
"QPushButton#button_StatsGlob_Apache::flat,"
|
||||
"QPushButton#button_StatsGlob_Nginx::flat,"
|
||||
"QPushButton#button_StatsGlob_Iis::flat {"
|
||||
" border: 1px solid "+style.at(WEB_SERVERS_BUTTONS_BORDER_FLAT)+";"
|
||||
" color: "+style.at(WEB_SERVERS_BUTTONS_TEXT_FLAT)+";"
|
||||
" background-color: "+style.at(WEB_SERVERS_BUTTONS_BASE_FLAT)+";"
|
||||
" border: 1px solid "% style.at(WEB_SERVERS_BUTTONS_BORDER_FLAT) %";"
|
||||
" color: "% style.at(WEB_SERVERS_BUTTONS_TEXT_FLAT) %";"
|
||||
" background-color: "% style.at(WEB_SERVERS_BUTTONS_BASE_FLAT) %";"
|
||||
"}"
|
||||
"QPushButton#button_StatsGlob_Apache::flat:hover,"
|
||||
"QPushButton#button_StatsGlob_Nginx::flat:hover,"
|
||||
"QPushButton#button_StatsGlob_Iis::flat:hover {"
|
||||
" border: 2px solid "+style.at(WEB_SERVERS_BUTTONS_BORDER_FLAT_HOVER)+";"
|
||||
" color: "+style.at(WEB_SERVERS_BUTTONS_TEXT_FLAT_HOVER)+";"
|
||||
" border: 2px solid "% style.at(WEB_SERVERS_BUTTONS_BORDER_FLAT_HOVER) %";"
|
||||
" color: "% style.at(WEB_SERVERS_BUTTONS_TEXT_FLAT_HOVER) %";"
|
||||
"}"
|
||||
"QPushButton#button_StatsGlob_Apache::disabled,"
|
||||
"QPushButton#button_StatsGlob_Nginx::disabled,"
|
||||
"QPushButton#button_StatsGlob_Iis::disabled {"
|
||||
" border: 0px;"
|
||||
" color: "+style.at(WEB_SERVERS_BUTTONS_TEXT_DISABLED)+";"
|
||||
" background-color: "+style.at(WEB_SERVERS_BUTTONS_BASE_DISABLED)+";"
|
||||
" color: "% style.at(WEB_SERVERS_BUTTONS_TEXT_DISABLED) %";"
|
||||
" background-color: "% style.at(WEB_SERVERS_BUTTONS_BASE_DISABLED) %";"
|
||||
"}"
|
||||
"QScrollArea#scrollArea_StatsGlob_Recur,"
|
||||
"QScrollArea#scrollArea_StatsGlob_Perf,"
|
||||
"QScrollArea#scrollArea_StatsGlob_Traffic,"
|
||||
"QScrollArea#scrollArea_StatsGlob_Work {"
|
||||
" border-radius: 8px;"
|
||||
" background-color: "+style.at(STATS_GLOBALS_FRAMES)+";"
|
||||
" background-color: "% style.at(STATS_GLOBALS_FRAMES) %";"
|
||||
"}"
|
||||
// styled frames
|
||||
"QFrame#frame_StatsWarn_Logs,"
|
||||
"QFrame#frame_StatsDay_Date,"
|
||||
"QFrame#frame_StatsRelat_Field {"
|
||||
" border: 1px solid "+style.at(BORDER_TERTIARY)+";"
|
||||
" border: 1px solid "% style.at(BORDER_TERTIARY) %";"
|
||||
"}"
|
||||
// lines separators
|
||||
"QFrame#gline_StatsWarn_1,"
|
||||
|
@ -1072,14 +1073,14 @@ void getStyleSheet( QString& stylesheet )
|
|||
"QFrame#gline_StatsDay_1,"
|
||||
"QFrame#gline_StatsDay_2,"
|
||||
"QFrame#gline_StatsRelat_1 {"
|
||||
" border: 1px solid "+style.at(SEPARATORS_BORDER)+";"
|
||||
" background-color: "+style.at(SEPARATORS_BASE)+";"
|
||||
" border: 1px solid "% style.at(SEPARATORS_BORDER) %";"
|
||||
" background-color: "% style.at(SEPARATORS_BASE) %";"
|
||||
"}"
|
||||
"QFrame#gline_StatsSpeed_1,"
|
||||
"QFrame#gline_StatsCount_1 {"
|
||||
" border: 1px solid "+style.at(SEPARATORS_BORDER)+";"
|
||||
" border: 1px solid "% style.at(SEPARATORS_BORDER) %";"
|
||||
" margin: 2px 0px 3px 0px;"
|
||||
" background-color: "+style.at(SEPARATORS_BASE)+";"
|
||||
" background-color: "% style.at(SEPARATORS_BASE) %";"
|
||||
"}"
|
||||
"QFrame#gline_StatsGlob_Recur_1,"
|
||||
"QFrame#gline_StatsGlob_Recur_2,"
|
||||
|
@ -1090,14 +1091,14 @@ void getStyleSheet( QString& stylesheet )
|
|||
"QFrame#gline_StatsGlob_Traffic_2,"
|
||||
"QFrame#gline_StatsGlob_Work_1,"
|
||||
"QFrame#gline_StatsGlob_Work_2 {"
|
||||
" border: 1px solid "+style.at(STATS_GLOBALS_FRAMES)+";"
|
||||
" background-color: "+style.at(SEPARATORS_BASE)+";"
|
||||
" border: 1px solid "% style.at(STATS_GLOBALS_FRAMES) %";"
|
||||
" background-color: "% style.at(SEPARATORS_BASE) %";"
|
||||
"}"
|
||||
/////////////////
|
||||
//// CONFIGS ////
|
||||
// sections
|
||||
"QTreeView#tree_ConfSections {"
|
||||
" background-color: "+style.at(CONFIGS_TREE_BASE)+";"
|
||||
" background-color: "% style.at(CONFIGS_TREE_BASE) %";"
|
||||
"}"
|
||||
"QTreeView#tree_ConfSections QScrollBar::sub-line:vertical {"
|
||||
" margin-top: -12px;"
|
||||
|
@ -1111,9 +1112,9 @@ void getStyleSheet( QString& stylesheet )
|
|||
"}"
|
||||
// line separators
|
||||
"QFrame#gline_ConfTextBrowser {"
|
||||
" border: 2px solid "+style.at(SEPARATORS_BORDER)+";"
|
||||
" border: 2px solid "% style.at(SEPARATORS_BORDER) %";"
|
||||
" margin: 13px 0px 14px 0px;"
|
||||
" background-color: "+style.at(SEPARATORS_BASE)+";"
|
||||
" background-color: "% style.at(SEPARATORS_BASE) %";"
|
||||
"}"
|
||||
// save buttons
|
||||
"QPushButton#button_ConfDatabases_Data_Save,"
|
||||
|
@ -1125,7 +1126,7 @@ void getStyleSheet( QString& stylesheet )
|
|||
"QPushButton#button_ConfIis_Path_Save,"
|
||||
"QPushButton#button_ConfIis_Format_Save {"
|
||||
" border-radius: 4px;"
|
||||
" background-color: "+style.at(BUTTONS_BASE)+";"
|
||||
" background-color: "% style.at(BUTTONS_BASE) %";"
|
||||
"}"
|
||||
"QPushButton#button_ConfDatabases_Data_Save:hover,"
|
||||
"QPushButton#button_ConfDatabases_Hashes_Save:hover,"
|
||||
|
@ -1135,7 +1136,7 @@ void getStyleSheet( QString& stylesheet )
|
|||
"QPushButton#button_ConfNginx_Format_Save:hover,"
|
||||
"QPushButton#button_ConfIis_Path_Save:hover,"
|
||||
"QPushButton#button_ConfIis_Format_Save:hover {"
|
||||
" background-color: "+style.at(BUTTONS_BASE_HOVER)+";"
|
||||
" background-color: "% style.at(BUTTONS_BASE_HOVER) %";"
|
||||
"}"
|
||||
"QPushButton#button_ConfDatabases_Data_Save::disabled,"
|
||||
"QPushButton#button_ConfDatabases_Hashes_Save::disabled,"
|
||||
|
@ -1145,7 +1146,7 @@ void getStyleSheet( QString& stylesheet )
|
|||
"QPushButton#button_ConfNginx_Format_Save::disabled,"
|
||||
"QPushButton#button_ConfIis_Path_Save::disabled,"
|
||||
"QPushButton#button_ConfIis_Format_Save::disabled {"
|
||||
" background-color: "+style.at(BUTTONS_BASE_DISABLED)+";"
|
||||
" background-color: "% style.at(BUTTONS_BASE_DISABLED) %";"
|
||||
" icon: url(:/icons/icons/midtone/save.png);"
|
||||
"}"
|
||||
// sample buttons
|
||||
|
@ -1153,33 +1154,33 @@ void getStyleSheet( QString& stylesheet )
|
|||
"QPushButton#button_ConfNginx_Format_Sample,"
|
||||
"QPushButton#button_ConfIis_Format_Sample {"
|
||||
" border-radius: 8px;"
|
||||
" background-color: "+style.at(BUTTONS_BASE)+";"
|
||||
" background-color: "% style.at(BUTTONS_BASE) %";"
|
||||
"}"
|
||||
"QPushButton#button_ConfApache_Format_Sample:hover,"
|
||||
"QPushButton#button_ConfNginx_Format_Sample:hover,"
|
||||
"QPushButton#button_ConfIis_Format_Sample:hover {"
|
||||
" background-color: "+style.at(BUTTONS_BASE_HOVER)+";"
|
||||
" background-color: "% style.at(BUTTONS_BASE_HOVER) %";"
|
||||
"}"
|
||||
// sample previews
|
||||
"QScrollArea#scrollArea_ConfApache_Format_Sample,"
|
||||
"QScrollArea#scrollArea_ConfNginx_Format_Sample,"
|
||||
"QScrollArea#scrollArea_ConfIis_Format_Sample {"
|
||||
" border: 1px solid "+style.at(BORDER_SECONDARY)+";"
|
||||
" border: 1px solid "% style.at(BORDER_SECONDARY) %";"
|
||||
" border-top-left-radius: 4px;"
|
||||
" border-top-right-radius: 4px;"
|
||||
" background-color: "+style.at(TEXTBROWSER_BASE)+";"
|
||||
" background-color: "% style.at(TEXTBROWSER_BASE) %";"
|
||||
"}"
|
||||
// help buttons
|
||||
"QPushButton#button_ConfApache_Format_Help,"
|
||||
"QPushButton#button_ConfNginx_Format_Help,"
|
||||
"QPushButton#button_ConfIis_Format_Help {"
|
||||
" border-radius: 8px;"
|
||||
" background-color: "+style.at(HELP_BUTTONS_BASE)+";"
|
||||
" background-color: "% style.at(HELP_BUTTONS_BASE) %";"
|
||||
"}"
|
||||
"QPushButton#button_ConfApache_Format_Help:hover,"
|
||||
"QPushButton#button_ConfNginx_Format_Help:hover,"
|
||||
"QPushButton#button_ConfIis_Format_Help:hover {"
|
||||
" background-color: "+style.at(HELP_BUTTONS_BASE_HOVER)+";"
|
||||
" background-color: "% style.at(HELP_BUTTONS_BASE_HOVER) %";"
|
||||
"}"
|
||||
// warnlists / blacklists
|
||||
"QListWidget#list_ConfApache_Warnlist_List,"
|
||||
|
@ -1189,7 +1190,7 @@ void getStyleSheet( QString& stylesheet )
|
|||
"QListWidget#list_ConfIis_Warnlist_List,"
|
||||
"QListWidget#list_ConfIis_Blacklist_List {"
|
||||
" padding: 4px;"
|
||||
" border: 1px solid "+style.at(BORDER_PRIMARY)+";"
|
||||
" border: 1px solid "% style.at(BORDER_PRIMARY) %";"
|
||||
"}"
|
||||
"QListWidget#list_ConfApache_Warnlist_List::disabled,"
|
||||
"QListWidget#list_ConfApache_Blacklist_List::disabled,"
|
||||
|
@ -1198,9 +1199,9 @@ void getStyleSheet( QString& stylesheet )
|
|||
"QListWidget#list_ConfIis_Warnlist_List::disabled,"
|
||||
"QListWidget#list_ConfIis_Blacklist_List::disabled {"
|
||||
" border: 0px;"
|
||||
" color: "+style.at(TEXT_DISABLED)+";"
|
||||
" background-color: "+style.at(TABLES_BASE_DISABLED)+";"
|
||||
" selection-background-color: "+style.at(TABLES_BASE_DISABLED)+";"
|
||||
" color: "% style.at(TEXT_DISABLED) %";"
|
||||
" background-color: "% style.at(TABLES_BASE_DISABLED) %";"
|
||||
" selection-background-color: "% style.at(TABLES_BASE_DISABLED) %";"
|
||||
"}"
|
||||
"QListWidget#list_ConfApache_Warnlist_List::item,"
|
||||
"QListWidget#list_ConfApache_Blacklist_List::item,"
|
||||
|
@ -1236,7 +1237,7 @@ void getStyleSheet( QString& stylesheet )
|
|||
"QPushButton#button_ConfIis_Blacklist_Up,"
|
||||
"QPushButton#button_ConfIis_Blacklist_Down {"
|
||||
" border-radius: 4px;"
|
||||
" background-color: "+style.at(BWLISTS_BUTTONS_BASE)+";"
|
||||
" background-color: "% style.at(BWLISTS_BUTTONS_BASE) %";"
|
||||
"}"
|
||||
"QPushButton#button_ConfApache_Warnlist_Add:hover,"
|
||||
"QPushButton#button_ConfApache_Warnlist_Remove:hover,"
|
||||
|
@ -1262,7 +1263,7 @@ void getStyleSheet( QString& stylesheet )
|
|||
"QPushButton#button_ConfIis_Blacklist_Remove:hover,"
|
||||
"QPushButton#button_ConfIis_Blacklist_Up:hover,"
|
||||
"QPushButton#button_ConfIis_Blacklist_Down:hover {"
|
||||
" background-color: "+style.at(BWLISTS_BUTTONS_BASE_HOVER)+";"
|
||||
" background-color: "% style.at(BWLISTS_BUTTONS_BASE_HOVER) %";"
|
||||
"}"
|
||||
"QPushButton#button_ConfApache_Warnlist_Add::disabled,"
|
||||
"QPushButton#button_ConfApache_Blacklist_Add::disabled,"
|
||||
|
@ -1270,8 +1271,8 @@ void getStyleSheet( QString& stylesheet )
|
|||
"QPushButton#button_ConfNginx_Blacklist_Add::disabled,"
|
||||
"QPushButton#button_ConfIis_Warnlist_Add::disabled,"
|
||||
"QPushButton#button_ConfIis_Blacklist_Add::disabled {"
|
||||
" background-color: "+style.at(BWLISTS_BUTTONS_BASE_DISABLED)+";"
|
||||
" icon: url(:/icons/icons/"+icons_theme+"/list_add.png), #fff;"
|
||||
" background-color: "% style.at(BWLISTS_BUTTONS_BASE_DISABLED) %";"
|
||||
" icon: url(:/icons/icons/"% icons_theme %"/list_add.png), #fff;"
|
||||
"}"
|
||||
"QPushButton#button_ConfApache_Warnlist_Remove::disabled,"
|
||||
"QPushButton#button_ConfApache_Blacklist_Remove::disabled,"
|
||||
|
@ -1279,8 +1280,8 @@ void getStyleSheet( QString& stylesheet )
|
|||
"QPushButton#button_ConfNginx_Blacklist_Remove::disabled,"
|
||||
"QPushButton#button_ConfIis_Warnlist_Remove::disabled,"
|
||||
"QPushButton#button_ConfIis_Blacklist_Remove::disabled {"
|
||||
" background-color: "+style.at(BWLISTS_BUTTONS_BASE_DISABLED)+";"
|
||||
" icon: url(:/icons/icons/"+icons_theme+"/list_rem.png), #fff;"
|
||||
" background-color: "% style.at(BWLISTS_BUTTONS_BASE_DISABLED) %";"
|
||||
" icon: url(:/icons/icons/"% icons_theme %"/list_rem.png), #fff;"
|
||||
"}"
|
||||
"QPushButton#button_ConfApache_Warnlist_Up::disabled,"
|
||||
"QPushButton#button_ConfApache_Blacklist_Up::disabled,"
|
||||
|
@ -1288,8 +1289,8 @@ void getStyleSheet( QString& stylesheet )
|
|||
"QPushButton#button_ConfNginx_Blacklist_Up::disabled,"
|
||||
"QPushButton#button_ConfIis_Warnlist_Up::disabled,"
|
||||
"QPushButton#button_ConfIis_Blacklist_Up::disabled {"
|
||||
" background-color: "+style.at(BWLISTS_BUTTONS_BASE_DISABLED)+";"
|
||||
" icon: url(:/icons/icons/"+icons_theme+"/list_up.png), #fff;"
|
||||
" background-color: "% style.at(BWLISTS_BUTTONS_BASE_DISABLED) %";"
|
||||
" icon: url(:/icons/icons/"% icons_theme %"/list_up.png), #fff;"
|
||||
"}"
|
||||
"QPushButton#button_ConfApache_Warnlist_Down::disabled,"
|
||||
"QPushButton#button_ConfApache_Blacklist_Down::disabled,"
|
||||
|
@ -1297,8 +1298,8 @@ void getStyleSheet( QString& stylesheet )
|
|||
"QPushButton#button_ConfNginx_Blacklist_Down::disabled,"
|
||||
"QPushButton#button_ConfIis_Warnlist_Down::disabled,"
|
||||
"QPushButton#button_ConfIis_Blacklist_Down::disabled {"
|
||||
" background-color: "+style.at(BWLISTS_BUTTONS_BASE_DISABLED)+";"
|
||||
" icon: url(:/icons/icons/"+icons_theme+"/list_down.png), #fff;"
|
||||
" background-color: "% style.at(BWLISTS_BUTTONS_BASE_DISABLED) %";"
|
||||
" icon: url(:/icons/icons/"% icons_theme %"/list_down.png), #fff;"
|
||||
"}"
|
||||
"QPushButton#button_ConfApache_Warnlist_Add::flat,"
|
||||
"QPushButton#button_ConfApache_Warnlist_Remove::flat,"
|
||||
|
@ -1324,7 +1325,7 @@ void getStyleSheet( QString& stylesheet )
|
|||
"QPushButton#button_ConfIis_Blacklist_Remove::flat,"
|
||||
"QPushButton#button_ConfIis_Blacklist_Up::flat,"
|
||||
"QPushButton#button_ConfIis_Blacklist_Down::flat {"
|
||||
" background-color: "+style.at(BWLISTS_BUTTONS_BASE_FLAT)+";"
|
||||
" background-color: "% style.at(BWLISTS_BUTTONS_BASE_FLAT) %";"
|
||||
" icon: none;"
|
||||
"}";
|
||||
}
|
||||
|
|
|
@ -14,9 +14,9 @@ namespace StyleSec
|
|||
|
||||
//! Provides the requested stylesheet
|
||||
/*!
|
||||
\param stylesheet Will hold the stylesheet
|
||||
\return The stylesheet string
|
||||
*/
|
||||
void getStyleSheet( QString& stylesheet );
|
||||
QString getStyleSheet();
|
||||
|
||||
} // namespace StyleSec
|
||||
|
||||
|
|
Loading…
Reference in New Issue