Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(ui): fix the context menu enabled/disabled behaviors
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakie.OYMJ committed Aug 12, 2018
1 parent cc4698d commit bc69c8c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 41 deletions.
1 change: 0 additions & 1 deletion src/widget/contentlayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ void ContentLayout::init()
mainHLine.setFrameShadow(QFrame::Plain);
QPalette palette = mainHLine.palette();
palette.setBrush(QPalette::WindowText, QBrush(QColor(193, 193, 193)));
palette.setBrush(QPalette::WindowText, QBrush(QColor(193, 193, 193)));
mainHLine.setPalette(palette);

mainContent = new QWidget();
Expand Down
1 change: 1 addition & 0 deletions ui/chatForm/buttons.css
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ QAbstractButton

QAbstractButton:disabled
{
color: gray;
background-color: #919191;
}

Expand Down
63 changes: 23 additions & 40 deletions ui/settings/mainContent.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
QWidget
{
color: black;
font: @big;
}

QTextEdit
{
border-color: @lightGrey;
Expand All @@ -15,17 +9,17 @@ QTextEdit

QListWidget
{
background: white;
background-color: white;
}

QMessageBox
{
background: white;
background-color: white;
}

QCheckBox
{
background: white;
background-color: white;
color: black;
}

Expand All @@ -36,17 +30,12 @@ QCheckBox:disabled

QSpinBox
{
background: white;
background-color: white;
}

QSpinBox:disabled
{
background: lightGrey;
}

QPushButton
{
background: white;
background-color: lightGrey;
}

QGroupBox
Expand All @@ -59,11 +48,11 @@ QGroupBox
QComboBox
{
color: black;
background: white;
background-color: white;
}

QComboBox QAbstractItemView {
background: white;
background-color: white;
}

QLineEdit
Expand All @@ -81,15 +70,9 @@ QTabWidget
background-color: white;
}

QTabBar
{
background-color: white;
}

QScrollArea
{
background-color: white;
background: transparent;
}

QScrollArea > QWidget > QWidget
Expand All @@ -99,7 +82,7 @@ QScrollArea > QWidget > QWidget

QScrollArea::corner
{
background: white;
background-color: white;
border: none;
}

Expand All @@ -113,33 +96,33 @@ QScrollBar:vertical

QScrollBar::handle:vertical
{
background: #d1d1d1;
background-color: #d1d1d1;
min-height: 20px;
border-radius: 3px;
margin-left: 2px;
}

QScrollBar::handle:vertical:hover
{
background: #e3e3e3;
background-color: #e3e3e3;
}

QScrollBar::handle:vertical:pressed
{
background: #b1b1b1;
background-color: #b1b1b1;
}

QScrollBar::add-line:vertical
{
background: white;
background-color: white;
height: 0px;
subcontrol-position: bottom;
subcontrol-origin: margin;
}

QScrollBar::sub-line:vertical
{
background: white;
background-color: white;
height: 0px;
subcontrol-position: top;
subcontrol-origin: margin;
Expand All @@ -149,14 +132,14 @@ QScrollBar:QScrollBar::down-arrow:vertical
{
width: 10;
height: 10px;
background: white;
background-color: white;
}

QScrollBar:QScrollBar::up-arrow:vertical
{
width: 10px;
height: 10px;
background: white;
background-color: white;
}

QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical
Expand All @@ -167,39 +150,39 @@ QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical

QScrollBar:horizontal
{
background: white;
background-color: white;
height: 10px;
margin: 0 2px 0 2px;
}

QScrollBar::handle:horizontal
{
background: #d1d1d1;
background-color: #d1d1d1;
min-width: 20px;
border-radius: 2px;
}

QScrollBar::handle:horizontal:hover
{
background: #e3e3e3;
background-color: #e3e3e3;
}

QScrollBar::handle:horizontal:pressed
{
background: #b1b1b1;
background-color: #b1b1b1;
}

QScrollBar::add-line:horizontal
{
background: white;
background-color: white;
width: 0px;
subcontrol-position: right;
subcontrol-origin: margin;
}

QScrollBar::sub-line:horizontal
{
background: white;
background-color: white;
width: 0px;
subcontrol-position: left;
subcontrol-origin: margin;
Expand All @@ -209,14 +192,14 @@ QScrollBar:QScrollBar::down-arrow:horizontal
{
width: 10;
height: 10px;
background: white;
background-color: white;
}

QScrollBar:QScrollBar::up-arrow:horizontal
{
width: 10px;
height: 10px;
background: white;
background-color: white;
}

QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal
Expand Down

0 comments on commit bc69c8c

Please sign in to comment.