Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Style tweak, dimming highlight color #528

Merged
merged 4 commits into from
Feb 21, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 17 additions & 20 deletions avalon/style/style.qss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
font-family: "Open Sans";
}

/*
@ Selection highlight: #40576D
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was like a quick access for testing color, since qss doesn't support declaring variables. Could be removed if you want it more cleaner.

*/


QProgressBar:horizontal {
border: 1px solid #3A3939;
text-align: center;
Expand All @@ -27,7 +32,7 @@ QWidget
{
color: silver;
background-color: #302F2F;
selection-background-color:#3d8ec9;
selection-background-color: #40576D;
selection-color: black;
background-clip: border;
border-image: none;
Expand All @@ -43,7 +48,7 @@ QWidget:item:hover

QWidget:item:selected
{
background-color: #3d8ec9;
background-color: #40576D;
}

QCheckBox
Expand Down Expand Up @@ -218,7 +223,7 @@ QMenuBar::item:selected
QMenuBar::item:pressed
{
border: 1px solid #3A3939;
background-color: #3d8ec9;
background-color: #40576D;
color: black;
margin-bottom:-1px;
padding-bottom:1px;
Expand Down Expand Up @@ -309,9 +314,9 @@ QWidget:disabled

QAbstractItemView
{
alternate-background-color: #3A3939;
alternate-background-color: #2D2C2C;
color: silver;
border: 1px solid 3A3939;
border: 1px solid #2D2C2C;
border-radius: 2px;
padding: 1px;
}
Expand Down Expand Up @@ -505,14 +510,6 @@ QPlainTextEdit
border: 1px solid #3A3939;
}

QHeaderView::section
{
background-color: #3A3939;
color: silver;
padding-left: 4px;
border: 1px solid #6c6c6c;
}
Comment on lines -508 to -514
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This section was duplicated, there are one exact definition with more attributes down below this style.qss file.


QSizeGrip {
image: url(:/qss_icons/rc/sizegrip.png);
width: 12px;
Expand Down Expand Up @@ -617,13 +614,13 @@ QPushButton:disabled
}

QPushButton:focus {
background-color: #3d8ec9;
background-color: #40576D;
color: white;
}

QComboBox
{
selection-background-color: #3d8ec9;
selection-background-color: #40576D;
background-color: #201F1F;
border-style: solid;
border: 1px solid #3A3939;
Expand Down Expand Up @@ -656,7 +653,7 @@ QComboBox QAbstractItemView
background-color: #201F1F;
border-radius: 2px;
border: 1px solid #444;
selection-background-color: #3d8ec9;
selection-background-color: #40576D;
}

QComboBox::drop-down
Expand Down Expand Up @@ -966,7 +963,7 @@ QListView::item:!selected:hover, QListView::item:!selected:hover, QTreeView::ite
}

QListView::item:selected:hover, QListView::item:selected:hover, QTreeView::item:selected:hover {
background: #3d8ec9;
background: #40576D;
color: #FFFFFF;
}

Expand Down Expand Up @@ -1096,7 +1093,7 @@ QTableView::item:pressed, QListView::item:pressed, QTreeView::item:pressed {
}

QTableView::item:selected:active, QTreeView::item:selected:active, QListView::item:selected:active {
background: #3d8ec9;
background: #40576D;
color: #FFFFFF;
}

Expand All @@ -1111,7 +1108,7 @@ QHeaderView

QHeaderView::section {
background-color: #3A3939;
color: silver;
/*color: silver;*/
padding: 4px;
border: 1px solid #6c6c6c;
border-radius: 0px;
Expand Down Expand Up @@ -1178,7 +1175,7 @@ QToolBox::tab {
QToolBox::tab:selected { /* italicize selected tabs */
font: italic;
background-color: #302F2F;
border-color: #3d8ec9;
border-color: #40576D;
}

QStatusBar::item {
Expand Down