source: tspsg/src/bb10proxystyle.h @ ca9cb6dfa5

0.1.4.170-beta2-bb10
Last change on this file since ca9cb6dfa5 was aa64ad4082, checked in by Oleksii Serdiuk, 12 years ago

Added proxy style and stylesheet to fix some UI issues on BlackBerry?.

Also, removed style selection option because most styles have UI issues
and removed About Qt menu item because About Qt dialog is too big.

  • Property mode set to 100644
File size: 1.8 KB
RevLine 
[aa64ad4082]1#ifndef BB10PROXYSTYLE_H
2#define BB10PROXYSTYLE_H
3
4#include <QProxyStyle>
5
6class BB10ProxyStyle : public QProxyStyle
7{
8public:
9    BB10ProxyStyle(QStyle *style = 0);
10
11    int pixelMetric(PixelMetric metric, const QStyleOption *option, const QWidget *widget) const;
12    int styleHint(StyleHint hint, const QStyleOption *option, const QWidget *widget, QStyleHintReturn *returnData) const;
13};
14
15#define CSS_FIX \
16"QMenuBar {"\
17"    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #444 stop:0.65 #333, stop:1 #444);"\
18"    border-bottom: 1px solid darkgray;"\
19"    spacing: 1px;"\
20"}"\
21"QMenuBar::item {"\
22"    padding: 0.3em 0.5em;"\
23"}"\
24"QMenuBar::item:selected {"\
25"    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #00a8df stop:0.65 #00889f, stop:1 #00a8df);"\
26"}"\
27"QMenu {"\
28"    border: 1px solid darkgray;"\
29"}"\
30"QMenu::item {"\
31"    padding: 0.4em 0.5em 0.4em 1.4em;"\
32"    color: white;"\
33"    font-size: 9pt;"\
34"    background-color: #121212;"\
35"}"\
36"QMenu::item:selected {"\
37"    background-color: #00a8df;"\
38"}"\
39"QMenu::item:disabled {"\
40"    color: darkgray;"\
41"    background-color: #121212;"\
42"}"\
43"QMenu::icon {"\
44"    margin-left: 0.85em;"\
45"}"\
46"QTabBar {"\
47"    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #444 stop:0.65 #333, stop:1 #444);"\
48"    border-bottom: 1px solid darkgray;"\
49"    spacing: 1px;"\
50"}"\
51"QTabBar::tab {"\
52"    padding: 0.3em 0.5em;"\
53"}"\
54"QTabBar::tab:selected {"\
55"    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #00a8df stop:0.65 #00889f, stop:1 #00a8df);"\
56"    padding: 0.3em 0.5em;"\
57"}"\
58"QTableView {"\
59"    gridline-color: darkgray;"\
60"}"\
61"QTableView::item {"\
62"    padding: 0 0.5em;"\
63"}"\
64"QComboBox {"\
65"    padding: 0.5em 1.3em 0.5em 0.5em;"\
66"}"\
67"QTextBrowser {"\
68"    background-color: lightgray;"\
69"    color: black;"\
70"}"
71
72#endif // BB10PROXYSTYLE_H
Note: See TracBrowser for help on using the repository browser.