# HG changeset patch # User Wuzzy # Date 1521242029 -3600 # Node ID 6193503c4727c4e14122be69fb511ec7b082156e # Parent d5a029299407bd4e5463b29958ae34a87c2bbe5f Various minor frontend CSS tweaks - Static border color for stats, teams list, map draw widget - Explicit definition of table header - New splitter design which works with the Qt style “Windows” diff -r d5a029299407 -r 6193503c4727 QTfrontend/hedgewars.qrc --- a/QTfrontend/hedgewars.qrc Fri Mar 16 19:25:51 2018 +0100 +++ b/QTfrontend/hedgewars.qrc Sat Mar 17 00:13:49 2018 +0100 @@ -119,6 +119,8 @@ res/spin_up_disabled.png res/spin_down.png res/spin_down_disabled.png + res/sort_up.png + res/sort_down.png res/PlaySound.png res/hh_small.png res/btnDisabled.png @@ -187,6 +189,7 @@ res/lock_disabled.png res/unlock.png res/unlock_disabled.png + res/splitter.png res/StatsMedal1.png res/StatsMedal2.png res/StatsMedal3.png diff -r d5a029299407 -r 6193503c4727 QTfrontend/res/css/qt.css --- a/QTfrontend/res/css/qt.css Fri Mar 16 19:25:51 2018 +0100 +++ b/QTfrontend/res/css/qt.css Sat Mar 17 00:13:49 2018 +0100 @@ -32,16 +32,36 @@ a { color:#c8c8ff; } -QLineEdit, QListWidget, QListView, QTableView, QTextBrowser, QSpinBox, QComboBox, +QLineEdit, QListWidget, QListView, QTableView, QTableWidget, QTextBrowser, QSpinBox, QComboBox, QComboBox QAbstractItemView, QPlainTextEdit, QMenu::item, #labelLikeLineEdit { background-color: rgba(13, 5, 68, 70%); } +VertScrArea, QGraphicsView { +border-style: solid; border-width: 2px; border-color: #cca300; border-radius: 3px; +} +#gameStatsView { +border-color: #332816; +} + +QSplitter::handle { +background-image: url(":/res/splitter.png"); +background-clip: content; +} +QSplitter::handle:horizontal { +width: 7px; +background-repeat: repeat-y; +} +QSplitter::handle:vertical { +height: 7px; +background-repeat: repeat-x; +} + QComboBox::separator { border: solid; border-width: 3px; border-color: #ffcc00; } -QPushButton, QListWidget, QListView, QTableView, QLineEdit, QHeaderView, +QPushButton, QListWidget, QListView, QTableView, QTableWidget, QLineEdit, QTextBrowser, QSpinBox, QToolBox, QComboBox, QPlainTextEdit, QComboBox QAbstractItemView, IconedGroupBox, .QGroupBox, #gameStackContainer, TeamSelWidget, SelWeaponWidget, @@ -81,7 +101,7 @@ background-color: #100744; } -QLineEdit, QListWidget, QListView, QTableView, QTextBrowser, +QLineEdit, QListWidget, QListView, QTableView, QTableWidget, QTextBrowser, QSpinBox, QToolBox, QPlainTextEdit, QToolButton, #mapPreview, #labelLikeLineEdit { border-radius: 10px; } @@ -96,7 +116,7 @@ } QLineEdit, QLabel, QHeaderView, QListWidget, QListView, QTableView, -QSpinBox, QToolBox::tab, QComboBox, QComboBox QAbstractItemView, +QTableWidget, QSpinBox, QToolBox::tab, QComboBox, QComboBox QAbstractItemView, IconedGroupBox, .QGroupBox, #gameStackContainer, TeamSelWidget, SelWeaponWidget, QCheckBox, QRadioButton, QPushButton, QPlainTextEdit { font: bold 13px; @@ -149,12 +169,35 @@ } QHeaderView { -border-radius: 0; -border-width: 0; +background-color: #00351d; +border: solid; border-bottom-width: 3px; -background-color: #00351d; +border-top-width: 0px; +border-left-width: 0px; +border-right-width: 0px; +border-color: #ffcc00; } -QTableView { +QHeaderView::section { +border-left-width: 1px; +border-right-width: 1px; +border-top-width: 0; +border-bottom-width: 0px; +border-color: #001d10; +border-style: solid; +background-color: #00351d; +padding: 4px; +} +QHeaderView::section:pressed { +background-color: #00250d; +} +QHeaderView::up-arrow { +image: url(":/res/sort_up.png"); +} +QHeaderView::down-arrow{ +image: url(":/res/sort_down.png"); +} + +QTableView, QTableWidget { alternate-background-color: #2f213a; gridline-color: transparent; } diff -r d5a029299407 -r 6193503c4727 QTfrontend/res/sort_down.png Binary file QTfrontend/res/sort_down.png has changed diff -r d5a029299407 -r 6193503c4727 QTfrontend/res/sort_up.png Binary file QTfrontend/res/sort_up.png has changed diff -r d5a029299407 -r 6193503c4727 QTfrontend/res/splitter.png Binary file QTfrontend/res/splitter.png has changed diff -r d5a029299407 -r 6193503c4727 QTfrontend/ui/page/pagegamestats.cpp --- a/QTfrontend/ui/page/pagegamestats.cpp Fri Mar 16 19:25:51 2018 +0100 +++ b/QTfrontend/ui/page/pagegamestats.cpp Sat Mar 17 00:13:49 2018 +0100 @@ -70,6 +70,7 @@ // graph graphic = new FitGraphicsView(gb); + graphic->setObjectName("gameStatsView"); labelGraphTitle = new QLabel(this); labelGraphTitle->setTextFormat(Qt::RichText); labelGraphTitle->setText("

" + PageGameStats::tr("Health graph") + "

");