📄 dbstyle.txt
字号:
/* mainFrame won't have this border-image since we have explicitly set it to 'none' using a more specific selector. */QLineEdit, QComboBox[editable="true"], QSpinBox { border-width: 1; background:white; padding-left: 5px; padding-top: 3px; padding-bottom: 2px; padding-right: 20px;}QLabel { border: none; border-image: none; padding: 0; background: none;} /* Set the selection colors for all widgets. */QWidget { selection-color: white; /*selection-background-color: Silver;*/ selection-background-color: darkblue; color: black;}/* Make the entire row selected in item views. */QAbstractItemView { show-decoration-selected: 1;}/* Nice WindowsXP-style password character for password line edits. */QLineEdit[echoMode="2"] { lineedit-password-character: 9679;}/* Customize tooltips. */QToolTip { background-color: rgb(200,200,255); border-color: darkslategray; border-width: 1px; border-style: solid; padding: 3px; font: bold; border-radius: 3px; opacity: 200;}/* Customize arrows. */*::down-arrow, *::menu-indicator { image: url(:/images/down_arrow.png); width: 7px; height: 7px;}*::down-arrow:disabled, *::down-arrow:off { image: url(:/images/down_arrow_disabled.png);}*::up-arrow { image: url(:/images/up_arrow.png); width: 7px; height: 7px;}*::up-arrow:disabled, *::up-arrow:off { image: url(:/images/up_arrow_disabled.png);}/* Customize push buttons and comboboxes. Our read-only combobox is very similar to a push button, so they share the same border image. */QPushButton { min-width: 4em;}QPushButton, QComboBox[editable="false"],QComboBox[editable="true"]::drop-down { border-image: url(:/images/pushbutton.png) 5; border-width: 5;}QPushButton:hover, QComboBox[editable="false"]:hover,QComboBox[editable="true"]::drop-down:hover, QMenuBar::item:hover { border-image: url(:/images/pushbutton_hover.png) 5; border-width: 5;}QPushButton:pressed, QComboBox[editable="false"]:on,QComboBox[editable="true"]::drop-down:on, QMenuBar::item:on { border-image: url(:/images/pushbutton_pressed.png) 5; border-width: 5;}/* Customize read-only comboboxes. */QComboBox[editable="false"] { padding-left: 3px; padding-right: 20px; /* space for the arrow */}QComboBox{min-width:30px;}QComboBox[editable="false"]::drop-down { subcontrol-origin: padding; subcontrol-position: top right; width: 15px; border-left-style: solid; border-left-color: darkgray; border-left-width: 1px;}QComboBox[editable="false"]::down-arrow { subcontrol-origin: content; subcontrol-position: center; position: relative; left: 1px; /* 1 pixel dropdown border */}/* The combobox arrow is on when the popup is open. */QComboBox[editable="false"]::down-arrow:on { position: relative; top: 1px; left: 2px;}/* Customize editable comboboxes. */QComboBox[editable="true"] { padding-left: 5px; padding-top: 3px; padding-bottom: 2px; padding-right: 20px;}QComboBox[editable="true"]::drop-down { subcontrol-origin: border; subcontrol-position: top right; width: 13px; position: absolute; top: 2px; bottom: 2px; right: 2px;}QComboBox[editable="true"]::drop-down,QComboBox[editable="true"]::drop-down:hover,QComboBox[editable="true"]::drop-down:on { border-width: 0px; border-left-width: 3px; /* we need only left and center part */}/* Shift the arrow when it's open. */QComboBox[editable="true"]::down-arrow:on { position: relative; top: 1px; left: 1px;}/* Customize the size grip. */QSizeGrip { image: url(:/images/sizegrip.png); width: 16px; height: 16px;}/* Customize spin boxes. */QSpinBox { padding-right: 15px;}QSpinBox::up-button { subcontrol-origin: border; subcontrol-position: top right; width: 16px; /* 16 + 2*1px border-width = 15px padding + 3px parent border */ border-image: url(:/images/spinup.png) 1; border-width: 1px;}QSpinBox::up-button:hover { border-image: url(:/images/spinup_hover.png) 1;}QSpinBox::up-button:pressed { border-image: url(:/images/spinup_pressed.png) 1;}QSpinBox::down-button { subcontrol-origin: border; subcontrol-position: bottom right; width: 16px; border-image: url(:/images/spindown.png) 1; border-width: 1px; border-top-width: 0;}QSpinBox::down-button:hover { border-image: url(:/images/spindown_hover.png) 1;}QSpinBox::down-button:pressed { border-image: url(:/images/spindown_pressed.png) 1;}/* Customize the menu bar. *//*QMenuBar { border-image: none; border-style: none; border-width: 1px; border-bottom-style: solid; border-bottom-color: darkslategray; padding: 2px;}*/ QTabWidget::pane { /* The tab widget frame */ border : 2px solid #C2C7CB; }QTabWidget::tab-bar { left: 0px; /* move to the right by 5px */ } /* Style the tab using the tab sub-control. Note that it reads QTabBar _not_ QTabWidget */ QTabBar::tab { background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #bbbbbb, stop: 0.4 #dddddd, stop: 0.5 #dddddd, stop: 1.0 #bbbbbb); border: 1px solid #C4C4C3; border-bottom-color: #C2C7CB; /* same as the pane color */ border-top-left-radius: 4px; border-top-right-radius: 4px; min-width: 18ex; padding: 5px; } QTabBar::tab:selected, QTabBar::tab:hover { background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #fafafa, stop: 0.4 #f4f4f4, stop: 0.5 #e7e7e7, stop: 1.0 #fafafa); } QTabBar::tab:selected { border-color: #9B9B9B; border-bottom-color: #C2C7CB; /* same as pane color */ color:blue; } QTabBar::tab:!selected { margin-top: 2px; /* make non-selected tabs look smaller */ } QTableWidget { selection-background-color: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 1, stop: 0 darkblue, stop: 1 darkblue); }QTableView { alternate-background-color: rgb(245,255,255); } QMenu::item{padding:5px 30px 5px 20px;margin:1px 2px 1px 1px;border:1px solid transparent;}QMenu::item:selected{border-color:darkblue;background:rgba(100,100,100,150);border-radius:4px;}QMenu::icon{background:transparent;}QMenuBar{spacing:0px;padding:2px;}QMenuBar::item{background:transparent;padding:2px 10px 2px 10px;margin:1px 1px 1px 1px;}QMenuBar::item:selected { /* when selected using mouse or keyboard */border:1px solid darkblue;background-color:qlineargradient(x1:0,y1:0,x2:0,y2:1,stop:0 #f6f7fa,stop:1 #888888);}QMenuBar::item:pressed {background-color:qlineargradient(x1:0,y1:0,x2:0,y2:1,stop:0 #888888,stop:1 #f6f7fa);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -