1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(ui): fix the context menu enabled/disabled behaviors

This commit is contained in:
Jakie.OYMJ 2018-08-12 20:38:10 +08:00
parent cc4698db65
commit bc69c8c919
3 changed files with 24 additions and 41 deletions

View File

@ -98,7 +98,6 @@ void ContentLayout::init()
mainHLine.setFrameShadow(QFrame::Plain); mainHLine.setFrameShadow(QFrame::Plain);
QPalette palette = mainHLine.palette(); QPalette palette = mainHLine.palette();
palette.setBrush(QPalette::WindowText, QBrush(QColor(193, 193, 193))); palette.setBrush(QPalette::WindowText, QBrush(QColor(193, 193, 193)));
palette.setBrush(QPalette::WindowText, QBrush(QColor(193, 193, 193)));
mainHLine.setPalette(palette); mainHLine.setPalette(palette);
mainContent = new QWidget(); mainContent = new QWidget();

View File

@ -105,6 +105,7 @@ QAbstractButton
QAbstractButton:disabled QAbstractButton:disabled
{ {
color: gray;
background-color: #919191; background-color: #919191;
} }

View File

@ -1,9 +1,3 @@
QWidget
{
color: black;
font: @big;
}
QTextEdit QTextEdit
{ {
border-color: @lightGrey; border-color: @lightGrey;
@ -15,17 +9,17 @@ QTextEdit
QListWidget QListWidget
{ {
background: white; background-color: white;
} }
QMessageBox QMessageBox
{ {
background: white; background-color: white;
} }
QCheckBox QCheckBox
{ {
background: white; background-color: white;
color: black; color: black;
} }
@ -36,17 +30,12 @@ QCheckBox:disabled
QSpinBox QSpinBox
{ {
background: white; background-color: white;
} }
QSpinBox:disabled QSpinBox:disabled
{ {
background: lightGrey; background-color: lightGrey;
}
QPushButton
{
background: white;
} }
QGroupBox QGroupBox
@ -59,11 +48,11 @@ QGroupBox
QComboBox QComboBox
{ {
color: black; color: black;
background: white; background-color: white;
} }
QComboBox QAbstractItemView { QComboBox QAbstractItemView {
background: white; background-color: white;
} }
QLineEdit QLineEdit
@ -81,15 +70,9 @@ QTabWidget
background-color: white; background-color: white;
} }
QTabBar
{
background-color: white;
}
QScrollArea QScrollArea
{ {
background-color: white; background-color: white;
background: transparent;
} }
QScrollArea > QWidget > QWidget QScrollArea > QWidget > QWidget
@ -99,7 +82,7 @@ QScrollArea > QWidget > QWidget
QScrollArea::corner QScrollArea::corner
{ {
background: white; background-color: white;
border: none; border: none;
} }
@ -113,7 +96,7 @@ QScrollBar:vertical
QScrollBar::handle:vertical QScrollBar::handle:vertical
{ {
background: #d1d1d1; background-color: #d1d1d1;
min-height: 20px; min-height: 20px;
border-radius: 3px; border-radius: 3px;
margin-left: 2px; margin-left: 2px;
@ -121,17 +104,17 @@ QScrollBar::handle:vertical
QScrollBar::handle:vertical:hover QScrollBar::handle:vertical:hover
{ {
background: #e3e3e3; background-color: #e3e3e3;
} }
QScrollBar::handle:vertical:pressed QScrollBar::handle:vertical:pressed
{ {
background: #b1b1b1; background-color: #b1b1b1;
} }
QScrollBar::add-line:vertical QScrollBar::add-line:vertical
{ {
background: white; background-color: white;
height: 0px; height: 0px;
subcontrol-position: bottom; subcontrol-position: bottom;
subcontrol-origin: margin; subcontrol-origin: margin;
@ -139,7 +122,7 @@ QScrollBar::add-line:vertical
QScrollBar::sub-line:vertical QScrollBar::sub-line:vertical
{ {
background: white; background-color: white;
height: 0px; height: 0px;
subcontrol-position: top; subcontrol-position: top;
subcontrol-origin: margin; subcontrol-origin: margin;
@ -149,14 +132,14 @@ QScrollBar:QScrollBar::down-arrow:vertical
{ {
width: 10; width: 10;
height: 10px; height: 10px;
background: white; background-color: white;
} }
QScrollBar:QScrollBar::up-arrow:vertical QScrollBar:QScrollBar::up-arrow:vertical
{ {
width: 10px; width: 10px;
height: 10px; height: 10px;
background: white; background-color: white;
} }
QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical
@ -167,31 +150,31 @@ QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical
QScrollBar:horizontal QScrollBar:horizontal
{ {
background: white; background-color: white;
height: 10px; height: 10px;
margin: 0 2px 0 2px; margin: 0 2px 0 2px;
} }
QScrollBar::handle:horizontal QScrollBar::handle:horizontal
{ {
background: #d1d1d1; background-color: #d1d1d1;
min-width: 20px; min-width: 20px;
border-radius: 2px; border-radius: 2px;
} }
QScrollBar::handle:horizontal:hover QScrollBar::handle:horizontal:hover
{ {
background: #e3e3e3; background-color: #e3e3e3;
} }
QScrollBar::handle:horizontal:pressed QScrollBar::handle:horizontal:pressed
{ {
background: #b1b1b1; background-color: #b1b1b1;
} }
QScrollBar::add-line:horizontal QScrollBar::add-line:horizontal
{ {
background: white; background-color: white;
width: 0px; width: 0px;
subcontrol-position: right; subcontrol-position: right;
subcontrol-origin: margin; subcontrol-origin: margin;
@ -199,7 +182,7 @@ QScrollBar::add-line:horizontal
QScrollBar::sub-line:horizontal QScrollBar::sub-line:horizontal
{ {
background: white; background-color: white;
width: 0px; width: 0px;
subcontrol-position: left; subcontrol-position: left;
subcontrol-origin: margin; subcontrol-origin: margin;
@ -209,14 +192,14 @@ QScrollBar:QScrollBar::down-arrow:horizontal
{ {
width: 10; width: 10;
height: 10px; height: 10px;
background: white; background-color: white;
} }
QScrollBar:QScrollBar::up-arrow:horizontal QScrollBar:QScrollBar::up-arrow:horizontal
{ {
width: 10px; width: 10px;
height: 10px; height: 10px;
background: white; background-color: white;
} }
QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal