mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 05:49:53 +08:00
145 lines
3.1 KiB
Plaintext
145 lines
3.1 KiB
Plaintext
/* Qt Style Sheets file
|
|
* Please refer to https://doc.qt.io/qt-5.12/stylesheet-reference.html
|
|
* for detailed inforamtion.
|
|
* **Notice** that selectors using base class and child class are considered to have the
|
|
* same specificity and the rule that appears last takes precedence.
|
|
* VNote specific syntax:
|
|
* - @widgets#toolbox#title#border: reference to a color defined in palette.ini;
|
|
*/
|
|
|
|
QWidget[HitSettingWidget="true"] {
|
|
border: 2px solid @base#info#fg;
|
|
}
|
|
|
|
/* All widgets */
|
|
*[State="info"] {
|
|
border: 1px solid @base#info#fg;
|
|
}
|
|
|
|
*[State="warning"] {
|
|
border: 1px solid @base#warning#fg;
|
|
}
|
|
|
|
*[State="error"] {
|
|
border: 1px solid @base#error#fg;
|
|
}
|
|
|
|
/* ToolBox */
|
|
vnotex--ToolBox QWidget[ToolBoxTitle="true"] {
|
|
border-bottom: 2px solid;
|
|
margin: 0px;
|
|
padding: 0px;
|
|
}
|
|
|
|
vnotex--ToolBox QToolButton[ToolBoxTitleButton="true"] {
|
|
padding: 4px 10px 4px 4px;
|
|
margin: 0px;
|
|
border: none;
|
|
}
|
|
|
|
vnotex--ToolBox QToolButton[ToolBoxTitleButton="true"]:checked {
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* TitleBar */
|
|
/* The height should be large enough regarding to the action buttons. */
|
|
vnotex--TitleBar QLabel[TitleBarTitle="true"] {
|
|
padding: 5px 1px;
|
|
margin: 0px;
|
|
}
|
|
|
|
/* QDockWidget */
|
|
QDockWidget::Title {
|
|
background-color: transparent;
|
|
text-align: center left;
|
|
}
|
|
|
|
/* NotebookSelector */
|
|
vnotex--NotebookSelector {
|
|
icon-size: 20px;
|
|
}
|
|
|
|
/* QMainWindow */
|
|
QMainWindow::separator {
|
|
/* For vertical */
|
|
width: 1px;
|
|
/* For horizontal */
|
|
height: 1px;
|
|
}
|
|
|
|
/* NotebookExplorer */
|
|
vnotex--NotebookNodeExplorer QTreeView::item {
|
|
padding-top: 2px;
|
|
padding-bottom: 2px;
|
|
}
|
|
|
|
/* OutlineViewer */
|
|
vnotex--OutlineViewer QTreeView::item {
|
|
padding-top: 2px;
|
|
padding-bottom: 2px;
|
|
}
|
|
|
|
/* QToolButton used for action */
|
|
QToolButton[ActionToolButton="true"]:!hover {
|
|
padding: 1px;
|
|
margin: 0px;
|
|
border: none;
|
|
}
|
|
|
|
QToolButton[ActionToolButton="true"]::menu-indicator {
|
|
image: none;
|
|
}
|
|
|
|
QToolButton[NoMenuIndicator="true"]::menu-indicator {
|
|
image: none;
|
|
}
|
|
|
|
/* QPushButton, QToolButton */
|
|
QPushButton[DangerButton="true"]:hover, QToolButton[DangerButton="true"]:hover {
|
|
color: @base#danger#fg;
|
|
background-color: @base#danger#bg;
|
|
border: none;
|
|
}
|
|
|
|
/* DrapDropAreaIndicator */
|
|
vnotex--DragDropAreaIndicator {
|
|
border: 2px dashed @widgets#dragdropareaindicator#border;
|
|
margin: 2px;
|
|
max-height: 200px;
|
|
}
|
|
|
|
vnotex--DragDropAreaIndicator QLabel {
|
|
font-size: 12pt;
|
|
font-weight: bold;
|
|
}
|
|
|
|
vnotex--MainWindow QLabel#MainWindowTipsLabel {
|
|
font-size: 20pt;
|
|
font-weight: bold;
|
|
}
|
|
|
|
vnotex--ViewSplit QTabBar[ViewSplitFlash="true"]::tab:selected {
|
|
background-color: @widgets#viewsplit#flash#bg;
|
|
}
|
|
|
|
vnotex--EntryPopup {
|
|
border: 1px solid @widgets#unitedentry#popup#border;
|
|
}
|
|
|
|
/* QWidgetAction item */
|
|
vnotex--LabelWithButtonsWidget {
|
|
background-color: @widgets#qmenu#bg;
|
|
}
|
|
|
|
vnotex--LabelWithButtonsWidget:hover {
|
|
background-color: @widgets#qmenu#item#selected#bg;
|
|
}
|
|
|
|
vnotex--LabelWithButtonsWidget QLabel {
|
|
color: @widgets#qmenu#fg;
|
|
}
|
|
|
|
vnotex--LabelWithButtonsWidget QLabel:hover {
|
|
color: @widgets#qmenu#item#selected#fg;
|
|
}
|