0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-28 01:04:41 +08:00

709 lines
19 KiB
SCSS
Raw Normal View History

2017-11-20 23:34:45 +03:00
/**********************************
* *
* Light theme for EasyProfiler. *
* *
* Automatically generated from *
* default.scss by pysassc tool *
* *
***********************************/
@function rgb_a($color, $opacity) {
@return fade_out($color, 1.0 - $opacity);
}
/**************************************************************************
* Legend *
* *
* ex - 'pt' analog for widgets. It is converted to 'px' on program start. *
* Example: '10ex' will be converted to '21px'. *
* *
* qex - same as 'ex' but with removed 'px' in resulting text. *
* It is used for 'qproperty' properties. *
* Example: '10qex' will be converted to '21'. *
* *
* OS dependent properties: *
* *
* {lin}font-weight: bold; *
* {win}height: 12ex; *
* {osx}backgound: transparent; *
* *
* Such properties will be uncommented on program start for specified OS *
* *
***************************************************************************/
// CONSTANTS ----------------------------------------------
$FontSize: 10pt;
2017-11-23 22:01:44 +03:00
$TextColor: #504040;
$DisabledTextColor: #c4c4c4;
$SelectedTextColor: $TextColor;
$DarkSelectedTextColor: white;
$DisabledSelectedTextColor: $DisabledTextColor;
$BorderColor: #c4c4c4;
2017-11-20 23:34:45 +03:00
$MainColor: #f44336;
$DarkSelectionColor: #3297FD;
$SelectionBorderColor: transparent;
$SelectionColor: #B4D5FE;
$DisabledSelectionColor: #B4D5FE;
$TreeViewSelectionColor: $SelectionColor;
$TreeViewSelectionTextColor: $TextColor;
2017-11-20 23:34:45 +03:00
$BackgroundColor: white;
2017-11-23 22:01:44 +03:00
$DisabledBackgroundColor: #f0f0f0;
2018-05-22 21:36:18 +03:00
$IndicatorBackgroundColor: $DarkSelectionColor;
$IndicatorBorderColor: darken($DarkSelectionColor, 5%);
$DisabledIndicatorBackgroundColor: $SelectionColor;
$DisabledIndicatorBorderColor: darken($SelectionColor, 5%);
$FocusBorderColor: $DarkSelectionColor; // #ffbcbc;
$TooltipColor: #ffeccc;
2017-11-20 23:34:45 +03:00
$InputHeight: 15ex;
$WindowHeaderSize: 15.6ex;
$WindowHeaderHoverColor: lighten($BorderColor, 14%); // #e8e8e8
2017-11-20 23:34:45 +03:00
// STYLES -------------------------------------------------
2017-11-20 23:34:45 +03:00
* {
2019-11-27 19:07:37 +03:00
/*{lin}font-family: "DejaVu Sans";*/
/*{win}font-family: "DejaVu Sans";*/
/*{osx}font-family: "Menlo";*/
font-size: $FontSize;
2017-11-20 23:34:45 +03:00
color: $TextColor;
}
*:disabled {
color: $DisabledTextColor;
}
RoundProgressIndicator {
qproperty-color: $DarkSelectionColor;
qproperty-background: $BorderColor;
qproperty-indicatorWidth: 2qex;
background: transparent;
}
RoundProgressDialog {
qproperty-background: rgb_a(#ffffff, 0.7);
qproperty-borderRadius: 10qex;
}
RoundProgressDialog#LoadProgress {
qproperty-background: rgb_a(#000000, 0.5);
RoundProgressWidget {
RoundProgressIndicator {
qproperty-buttonColor: white;
qproperty-buttonStyle: cross;
qproperty-buttonRole: reject;
qproperty-buttonSize: 0.4;
qproperty-crossWidth: 1;
color: white;
}
RoundProgressIndicator[pressed=true] {
qproperty-buttonColor: red;
}
QLabel {
color: white;
}
}
}
RoundProgressDialog#CaptureProgress, RoundProgressDialog#ReceiveProgress {
qproperty-background: rgb_a(#000000, 0.5);
RoundProgressWidget {
RoundProgressIndicator {
qproperty-style: infinite;
qproperty-buttonColor: red;
qproperty-buttonStyle: stop;
qproperty-buttonRole: accept;
qproperty-buttonSize: 0.35;
color: white;
}
RoundProgressIndicator[pressed=true] {
qproperty-buttonColor: darkRed;
}
QLabel {
color: white;
}
}
}
RoundProgressDialog#ReceiveProgress RoundProgressWidget RoundProgressIndicator {
qproperty-buttonColor: white;
qproperty-buttonStyle: cross;
qproperty-buttonRole: reject;
qproperty-buttonSize: 0.4;
qproperty-crossWidth: 1;
}
RoundProgressDialog#ReceiveProgress RoundProgressWidget RoundProgressIndicator[pressed=true] {
qproperty-buttonColor: red;
}
MainWindow, QToolBar, QDialog {
border-style: solid;
2019-11-27 19:07:37 +03:00
border-color: $BackgroundColor;
background-color: $BackgroundColor;
2017-11-20 23:34:45 +03:00
}
2017-11-23 22:01:44 +03:00
QToolTip {
background-color: $TooltipColor;
2017-11-23 22:01:44 +03:00
border: 1px solid $BorderColor;
color: $TextColor;
}
ArbitraryValueToolTip {
margin: 0;
border: none;
background-color: $TooltipColor;
QWidget#cnt {
border: 1px solid $BorderColor;
2019-11-27 19:07:37 +03:00
background: transparent;
margin: 0;
}
QLabel {
2019-11-27 19:07:37 +03:00
background: transparent;
border: none;
color: $TextColor;
}
QTextEdit {
2019-11-27 19:07:37 +03:00
background: transparent;
border: none;
color: $TextColor;
selection-color: $DarkSelectedTextColor;
selection-background-color: $DarkSelectionColor;
}
}
QWidget#DiagramPopup, QWidget#ThreadsPopup, QLabel#BookmarkPopup {
background-color: $TooltipColor;
border: 1px solid $BorderColor;
2017-11-23 22:01:44 +03:00
}
2017-11-20 23:34:45 +03:00
QLabel#BookmarkPopup {
padding: 4ex;
}
2017-11-27 22:02:15 +03:00
QGraphicsView {
border: 1px solid $BorderColor;
2019-11-27 19:07:37 +03:00
background-color: $BackgroundColor;
2017-11-27 22:02:15 +03:00
}
QSplitter::handle:hover {
background-color: $FocusBorderColor;
}
QSplitter::handle:pressed {
background-color: darken($FocusBorderColor, 20%);
}
QLabel#BlocksTreeWidget_HintLabel {
color: gray;
font-size: 12pt;
}
QLabel#BlocksTreeWidget_HintLabel[hovered=true] {
color: black;
}
2017-11-20 23:34:45 +03:00
/* ****************************************************************************************************************** */
QLineEdit, QSpinBox {
2017-11-20 23:34:45 +03:00
border: 1px solid $BorderColor;
background-color: $BackgroundColor;
selection-background-color: $DarkSelectionColor;
selection-color: $DarkSelectedTextColor;
height: $InputHeight;
}
QComboBox {
border: 1px solid $BorderColor;
background-color: $BackgroundColor;
selection-background-color: $SelectionColor;
selection-color: $SelectedTextColor;
height: $InputHeight;
padding-right: 11ex;
2017-11-20 23:34:45 +03:00
}
2017-11-23 22:01:44 +03:00
QLineEdit:disabled, QComboBox:disabled, QSpinBox:disabled {
2017-11-20 23:34:45 +03:00
background-color: $DisabledBackgroundColor;
color: $DisabledTextColor;
selection-background-color: $DisabledSelectionColor;
selection-color: $DisabledSelectedTextColor;
2017-11-20 23:34:45 +03:00
}
2017-11-23 22:01:44 +03:00
QLineEdit:focus { border: 1px solid $FocusBorderColor; }
2017-11-20 23:34:45 +03:00
2017-11-23 22:01:44 +03:00
/* ****************************************************************************************************************** */
2017-11-20 23:34:45 +03:00
QComboBox::drop-down {
subcontrol-origin: border;
subcontrol-position: center right;
2017-11-23 22:01:44 +03:00
border: none;
width: 10ex;
}
QTextEdit {
2019-11-27 19:07:37 +03:00
background-color: $BackgroundColor;
}
QComboBox::down-arrow {
image: url(":/images/default/arrow-down");
width: 5ex;
height: 5ex;
}
QComboBox::down-arrow:hover {
image: url(":/images/default/arrow-down-hover");
2017-11-20 23:34:45 +03:00
}
QComboBox::down-arrow:disabled {
image: url(":/images/default/arrow-down-disabled");
}
2017-11-23 22:01:44 +03:00
/* ****************************************************************************************************************** */
QSpinBox::up-button {
subcontrol-origin: padding;
subcontrol-position: top right;
border: none;
width: 10ex;
2017-11-23 22:01:44 +03:00
}
QSpinBox::down-button {
subcontrol-origin: padding;
subcontrol-position: bottom right;
border: none;
width: 10ex;
2017-11-23 22:01:44 +03:00
}
QSpinBox::up-arrow {
image: url(":/images/default/arrow-up");
width: 5ex;
height: 5ex;
}
QSpinBox::up-arrow:hover {
image: url(":/images/default/arrow-up-hover");
2017-11-23 22:01:44 +03:00
}
QSpinBox::up-arrow:pressed {
image: url(":/images/default/arrow-up-pressed");
}
2017-11-23 22:01:44 +03:00
QSpinBox::up-arrow:disabled {
image: url(":/images/default/arrow-up-disabled");
}
QSpinBox::down-arrow {
image: url(":/images/default/arrow-down");
width: 5ex;
height: 5ex;
}
QSpinBox::down-arrow:hover {
image: url(":/images/default/arrow-down-hover");
}
QSpinBox::down-arrow:pressed {
image: url(":/images/default/arrow-down-pressed");
}
QSpinBox::down-arrow:disabled {
image: url(":/images/default/arrow-down-disabled");
}
2017-11-20 23:34:45 +03:00
2017-11-23 22:01:44 +03:00
/* ****************************************************************************************************************** */
2017-11-20 23:34:45 +03:00
QPushButton {
height: $InputHeight;
2018-05-22 21:36:18 +03:00
min-width: 35ex;
2017-11-20 23:34:45 +03:00
border: 1px solid $BorderColor;
background-color: $BackgroundColor;
2018-05-22 21:36:18 +03:00
padding-left: 5ex;
padding-right: 5ex;
2017-11-20 23:34:45 +03:00
}
2017-11-23 22:01:44 +03:00
QPushButton:disabled {
background-color: $DisabledBackgroundColor;
color: $DisabledTextColor;
}
2017-11-20 23:34:45 +03:00
QPushButton:hover {
2018-05-23 00:22:12 +03:00
border-color: $FocusBorderColor;
2017-11-20 23:34:45 +03:00
}
QPushButton:pressed {
2018-05-23 00:22:12 +03:00
border-color: $FocusBorderColor;
background-color: $FocusBorderColor;
color: white;
2017-11-20 23:34:45 +03:00
}
2017-11-23 22:01:44 +03:00
/* ****************************************************************************************************************** */
QListView {
2017-11-20 23:34:45 +03:00
background-color: $BackgroundColor;
border: 1px solid $BorderColor;
2017-11-27 22:02:15 +03:00
}
QListView, QTableView, QTreeView {
2019-11-27 19:07:37 +03:00
background-color: $BackgroundColor;
2017-11-27 22:02:15 +03:00
alternate-background-color: #e4e4ec;
selection-background-color: $TreeViewSelectionColor;
selection-color: $TreeViewSelectionTextColor;
2017-11-20 23:34:45 +03:00
}
2018-02-25 21:04:32 +03:00
QTreeView::branch {
padding: 5ex 0 5ex 0;
selection-background-color: $TreeViewSelectionColor;
2018-02-25 21:04:32 +03:00
border-bottom: 1px solid $BorderColor;
}
QTreeView::branch:selected {
background-color: $TreeViewSelectionColor;
2018-02-25 21:04:32 +03:00
}
QTreeView::branch:open:has-children {
border-image: none;
image: url(":/images/default/arrow-down");
}
QTreeView::branch:closed:has-children {
border-image: none;
image: url(":/images/default/arrow-right");
}
2017-11-27 22:02:15 +03:00
QListView::item, QTableView::item, QTreeView::item {
height: $InputHeight;
2017-11-27 22:02:15 +03:00
border-bottom: 1px solid $BorderColor;
}
QListView::item:selected, QTableView::item:selected, QTreeView::item:selected {
background-color: $TreeViewSelectionColor;
2017-11-23 22:01:44 +03:00
}
QTreeView::indicator {
width: 9ex;
height: 9ex;
2019-11-27 19:07:37 +03:00
background: transparent;
border: 1px solid transparent;
padding: 1px;
margin: 0;
}
2018-05-22 21:36:18 +03:00
QTreeView::indicator:hover {
background-color: $BackgroundColor;
border: 1px solid $BorderColor;
}
QTreeView::indicator:checked {
2018-05-22 21:36:18 +03:00
background-color: $IndicatorBackgroundColor;
border: 1px solid $IndicatorBorderColor;
image: url(":/images/default/check");
}
QTreeView::indicator:checked:disabled {
2018-05-22 21:36:18 +03:00
background-color: $DisabledIndicatorBackgroundColor;
border: 1px solid $DisabledIndicatorBorderColor;
image: url(":/images/default/check-disabled");
}
QTreeView::indicator:indeterminate {
2018-05-22 21:36:18 +03:00
background-color: $IndicatorBackgroundColor;
border: 1px solid $IndicatorBorderColor;
image: url(":/images/default/partial-check");
}
QTreeView::indicator:indeterminate:disabled {
2018-05-22 21:36:18 +03:00
background-color: $DisabledIndicatorBackgroundColor;
border: 1px solid $DisabledIndicatorBorderColor;
image: url(":/images/default/partial-check-disabled");
}
2017-11-20 23:34:45 +03:00
/* ****************************************************************************************************************** */
QMenu {
background-color: $BackgroundColor;
border: 1px solid $BorderColor;
padding: 2ex 1ex 2ex 1ex;
2017-11-20 23:34:45 +03:00
}
QMenu::item {
height: $InputHeight;
padding-left: 17ex;
2019-10-27 14:27:53 +03:00
padding-right: 10ex;
2017-11-20 23:34:45 +03:00
border: 1px solid transparent; /* reserve space for selection border */
}
QMenu::item:selected {
border: 1px solid $SelectionBorderColor;
background-color: $SelectionColor;
color: $SelectedTextColor;
2017-11-20 23:34:45 +03:00
}
QMenu::icon {
width: 8ex;
height: 8ex;
2017-11-20 23:34:45 +03:00
background: none;
border: 1px inset transparent;
2018-05-22 21:36:18 +03:00
padding: 0;
margin: 0 1ex 0 2ex;
2017-11-20 23:34:45 +03:00
}
QMenu::icon:checked { /* appearance of a 'checked' icon */
background-color: #dddddd;
border: 1px inset #aaaaaa;
}
QMenu::separator {
height: 1px;
background: $BorderColor;
margin-left: 4ex;
margin-right: 4ex;
2017-11-20 23:34:45 +03:00
}
QMenu::indicator {
width: 9ex;
height: 9ex;
2017-11-20 23:34:45 +03:00
background-color: $BackgroundColor;
border: 1px solid $BorderColor;
padding: 1px;
margin: 0 0 0 2ex;
2017-11-20 23:34:45 +03:00
}
QMenu::indicator:non-exclusive:checked {
2018-05-22 21:36:18 +03:00
background-color: $IndicatorBackgroundColor;
border: 1px solid $IndicatorBorderColor;
image: url(":/images/default/check");
2017-11-20 23:34:45 +03:00
}
QMenu::indicator:non-exclusive:checked:disabled {
2018-05-22 21:36:18 +03:00
background-color: $DisabledIndicatorBackgroundColor;
border: 1px solid $DisabledIndicatorBorderColor;
image: url(":/images/default/check-disabled");
2017-11-20 23:34:45 +03:00
}
QMenu::indicator:exclusive {
border-radius: 5ex;
2017-11-20 23:34:45 +03:00
}
QMenu::indicator:exclusive:checked {
image: url(":/images/default/radio-check");
2017-11-20 23:34:45 +03:00
}
QMenu::indicator:exclusive:checked:disabled {
image: url(":/images/default/radio-check-disabled");
2017-11-20 23:34:45 +03:00
}
/* ****************************************************************************************************************** */
QHeaderView::section {
height: $InputHeight;
min-height: $InputHeight;
max-height: $InputHeight;
2017-11-20 23:34:45 +03:00
background: #eeeeee;
/*{lin}font-weight: bold;*/
2017-11-20 23:34:45 +03:00
}
/* ****************************************************************************************************************** */
DockWidget
2017-11-20 23:34:45 +03:00
{
QWidget#EasyDockWidgetTitle
{
background-color: #686464;
QLabel {
color: white;
margin-left: 4px;
2019-11-27 19:07:37 +03:00
background: transparent;
2017-11-20 23:34:45 +03:00
}
QPushButton {
background: none;
border: none;
max-height: 8ex;
min-width: 8ex;
max-width: 8ex;
margin-right: 3ex;
2017-11-20 23:34:45 +03:00
padding: 0;
}
2017-11-26 15:37:39 +03:00
QPushButton#EasyDockWidgetFloatButton { image: url(":/images/default/dock-maximize-white"); }
QPushButton#EasyDockWidgetFloatButton:hover { image: url(":/images/default/dock-maximize-white-hover"); }
QPushButton#EasyDockWidgetFloatButton:pressed { image: url(":/images/default/dock-maximize-white-pressed"); }
2017-11-20 23:34:45 +03:00
2017-11-26 15:37:39 +03:00
QPushButton#EasyDockWidgetFloatButton[floating=true] { image: url(":/images/default/dock-minimize-white"); }
QPushButton#EasyDockWidgetFloatButton[floating=true]:hover { image: url(":/images/default/dock-minimize-white-hover"); }
QPushButton#EasyDockWidgetFloatButton[floating=true]:pressed { image: url(":/images/default/dock-minimize-white-pressed"); }
2017-11-20 23:34:45 +03:00
2017-11-26 15:37:39 +03:00
QPushButton#EasyDockWidgetCloseButton { image: url(":/images/default/dock-close-white"); }
QPushButton#EasyDockWidgetCloseButton:hover { image: url(":/images/default/dock-close-white-hover"); }
QPushButton#EasyDockWidgetCloseButton:pressed { image: url(":/images/default/dock-close-white-pressed"); }
2017-11-20 23:34:45 +03:00
}
}
/* ****************************************************************************************************************** */
QProgressBar {
background-color: #a4a4b4;
border: none;
color: white;
2017-11-20 23:34:45 +03:00
text-align: center;
height: 14ex;
2017-11-20 23:34:45 +03:00
}
QProgressBar::chunk {
background-color: $DarkSelectionColor;
2017-11-20 23:34:45 +03:00
width: 2px;
margin: 0;
}
2017-11-23 22:01:44 +03:00
/* ****************************************************************************************************************** */
QScrollBar {
2019-11-27 19:07:37 +03:00
background: transparent;
2017-11-23 22:01:44 +03:00
border: none;
padding: 0;
}
QScrollBar:hover {
background-color: rgb_a(#000000, 0.1);
}
QScrollBar:horizontal {
margin: 0;
height: 5ex;
2017-11-23 22:01:44 +03:00
}
QScrollBar:vertical {
margin: 0;
width: 5ex;
2017-11-23 22:01:44 +03:00
}
QScrollBar::handle {
background-color: rgb_a(#000000, 0.4);
border: none;
margin: 0;
padding: 0;
}
QScrollBar::handle:pressed {
background-color: rgb_a(#000000, 0.6);
}
QScrollBar::handle:vertical { min-height: 20ex; margin-left: 3ex; }
2017-11-23 22:01:44 +03:00
QScrollBar::handle:vertical:hover, QScrollBar::handle:vertical:pressed { margin-left: 0; }
QScrollBar::handle:horizontal { min-width: 20ex; margin-top: 3ex; }
2017-11-23 22:01:44 +03:00
QScrollBar::handle:horizontal:hover, QScrollBar::handle:horizontal:pressed { margin-top: 0; }
QScrollBar::add-line, QScrollBar::sub-line {
background: none;
border: none;
}
WindowHeader {
2019-11-27 19:07:37 +03:00
background-color: $BackgroundColor;
height: $WindowHeaderSize;
min-height: $WindowHeaderSize;
max-height: $WindowHeaderSize;
margin: 0;
padding: 0 0 0 6ex;
border: none;
QPushButton {
margin: 0;
padding: 0;
border: none;
border-bottom: 1px solid transparent;
}
QPushButton:hover {
border: none;
}
QPushButton#WindowHeader_CloseButton {
image: url(":/images/default/close");
padding: 1ex;
}
QPushButton#WindowHeader_CloseButton:hover {
image: url(":/images/default/close-hover");
background-color: $MainColor;
border-bottom: 1px solid $MainColor;
}
QPushButton#WindowHeader_CloseButton:pressed {
background-color: darken($MainColor, 10%);
border-bottom: 1px solid darken($MainColor, 10%);
}
QPushButton#WindowHeader_MinButton {
image: url(":/images/default/minimize");
padding: 2ex;
}
QPushButton#WindowHeader_MinButton:hover {
background-color: $WindowHeaderHoverColor;
border-bottom: 1px solid $WindowHeaderHoverColor;
}
QPushButton#WindowHeader_MinButton:pressed {
background-color: $BorderColor;
border-bottom: 1px solid $BorderColor;
}
QPushButton#WindowHeader_MaxButton {
image: url(":/images/default/to-fullscreen");
padding: 1ex;
}
QPushButton#WindowHeader_MaxButton[max=true] {
image: url(":/images/default/to-window");
padding: 1ex;
}
QPushButton#WindowHeader_MaxButton:hover {
background-color: $WindowHeaderHoverColor;
border-bottom: 1px solid $WindowHeaderHoverColor;
}
QPushButton#WindowHeader_MaxButton:pressed {
background-color: $BorderColor;
border-bottom: 1px solid $BorderColor;
}
}
WindowHeader[left=true] {
padding: 0;
}
BookmarkEditor {
2019-11-27 19:07:37 +03:00
background-color: $BackgroundColor;
border: 1px solid $BorderColor;
QWidget#BookmarkEditor_ColorBox {
margin: 0;
padding: 0;
2019-11-27 19:07:37 +03:00
background: transparent;
QPushButton#BookmarkEditor_ColorButton {
min-width: $InputHeight;
max-width: $InputHeight;
width: $InputHeight;
margin: 0;
padding: 0;
}
}
QWidget#BookmarkEditor_ButtonBox {
border: none;
}
}
Dialog {
border: 1px solid $BorderColor;
2019-11-27 19:07:37 +03:00
background-color: $BackgroundColor;
}