TSP Solver and Generator
bb10proxystyle.h
Go to the documentation of this file.
1 
28 #ifndef BB10PROXYSTYLE_H
29 #define BB10PROXYSTYLE_H
30 
31 #include <QProxyStyle>
32 
34 {
35 public:
36  BB10ProxyStyle(QStyle *style = 0);
37 
38  int pixelMetric(PixelMetric metric, const QStyleOption *option, const QWidget *widget) const;
39  int styleHint(StyleHint hint, const QStyleOption *option, const QWidget *widget, QStyleHintReturn *returnData) const;
40 };
41 
42 #define CSS_FIX \
43 "QMenuBar {"\
44 " background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #444 stop:0.65 #333, stop:1 #444);"\
45 " border-bottom: 1px solid darkgray;"\
46 " spacing: 1px;"\
47 "}"\
48 "QMenuBar::item {"\
49 " padding: 0.3em 0.5em;"\
50 "}"\
51 "QMenuBar::item:selected {"\
52 " background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #00a8df stop:0.65 #00889f, stop:1 #00a8df);"\
53 "}"\
54 "QMenu {"\
55 " border: 1px solid darkgray;"\
56 "}"\
57 "QMenu::item {"\
58 " padding: 0.4em 0.5em 0.4em 1.4em;"\
59 " color: white;"\
60 " font-size: 9pt;"\
61 " background-color: #121212;"\
62 "}"\
63 "QMenu::item:selected {"\
64 " background-color: #00a8df;"\
65 "}"\
66 "QMenu::item:disabled {"\
67 " color: darkgray;"\
68 " background-color: #121212;"\
69 "}"\
70 "QMenu::icon {"\
71 " margin-left: 0.85em;"\
72 "}"\
73 "QTabBar {"\
74 " background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #444 stop:0.65 #333, stop:1 #444);"\
75 " border-bottom: 1px solid darkgray;"\
76 " spacing: 1px;"\
77 "}"\
78 "QTabBar::tab {"\
79 " padding: 0.3em 0.5em;"\
80 "}"\
81 "QTabBar::tab:selected {"\
82 " background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #00a8df stop:0.65 #00889f, stop:1 #00a8df);"\
83 " padding: 0.3em 0.5em;"\
84 "}"\
85 "QTableView {"\
86 " gridline-color: darkgray;"\
87 "}"\
88 "QTableView::item {"\
89 " padding: 0 0.5em;"\
90 "}"\
91 "QComboBox {"\
92 " padding: 0.5em 1.3em 0.5em 0.5em;"\
93 "}"\
94 "QTextBrowser {"\
95 " background-color: lightgray;"\
96 " color: black;"\
97 "}"
98 
99 #endif // BB10PROXYSTYLE_H
Definition: bb10proxystyle.h:33