source: tspsg/src/bb10proxystyle.h @ 7ed8b57eea

appveyorimgbotreadme
Last change on this file since 7ed8b57eea was 7ed8b57eea, checked in by Oleksii Serdiuk, 11 years ago

[BB10] UI fixes:

  • added proxy style and stylesheet to fix some UI issues on BlackBerry?;
  • removed style selection option because most styles have UI issues and removed About Qt menu item because About Qt dialog is too big;
  • load bigger (128x128) icons on BlackBerry? 10;
  • removed printing related items from menu as there's no printer;
  • made dialogs to be shown maximized;
  • made solution graph smaller;
  • made font smaller;
  • made output text color black;
  • start editing table cells on single tap;
  • don't show keyboard in about dialog.

Cherry-picks from
aa64ad40827cde0a444cd8198b0f3457aa191f8f
95b0ef73dcb4517ac2ae08867494204bbe8d7ea6
ccdffe3a5f84f12fba2e2f19ab249c31f1fcf35d
628500a5d687889823197e476953859d529af4f0

  • Property mode set to 100644
File size: 1.8 KB
Line 
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.