source: tspsg/src/bb10proxystyle.h @ fb0c1d86f4

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

Added copyright boilerplates to BB10ProxyStyle files.

  • Property mode set to 100644
File size: 2.8 KB
Line 
1/*!
2 * \file bb10proxystyle.h
3 * \author Copyright &copy; 2007-2013 Oleksii Serdiuk <contacts[at]oleksii[dot]name>
4 *
5 *  $Id: $Format:%h %ai %an$ $
6 *  $URL: http://tspsg.info/ $
7 *
8 * \brief Defines BB10ProxyStyle class.
9 *
10 *  <b>TSPSG: TSP Solver and Generator</b>
11 *
12 *  This file is part of TSPSG.
13 *
14 *  TSPSG is free software: you can redistribute it and/or modify
15 *  it under the terms of the GNU General Public License as published by
16 *  the Free Software Foundation, either version 2 of the License, or
17 *  (at your option) any later version.
18 *
19 *  TSPSG is distributed in the hope that it will be useful,
20 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
21 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22 *  GNU General Public License for more details.
23 *
24 *  You should have received a copy of the GNU General Public License
25 *  along with TSPSG.  If not, see <http://www.gnu.org/licenses/>.
26 */
27
28#ifndef BB10PROXYSTYLE_H
29#define BB10PROXYSTYLE_H
30
31#include <QProxyStyle>
32
33class BB10ProxyStyle : public QProxyStyle
34{
35public:
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
Note: See TracBrowser for help on using the repository browser.