stifui/qt/qss/coffee.qss
branchRCL_3
changeset 18 48060abbbeaf
parent 17 d40e813b23c0
child 19 b3cee849fa46
equal deleted inserted replaced
17:d40e813b23c0 18:48060abbbeaf
     1 QWidget {
       
     2 	background-color: cornsilk;
       
     3 }
       
     4 
       
     5 QMessageBox {
       
     6 	background-color: cornsilk;
       
     7 	border-width: 2px;
       
     8 	border-style: solid;
       
     9     border-color: darkkhaki;
       
    10     padding: 3px;
       
    11     font-size:12px;
       
    12     font: bold;
       
    13 }
       
    14 
       
    15 QDialog {
       
    16 	background-color: cornsilk;
       
    17 	border-width: 2px;
       
    18 	border-style: solid;
       
    19     border-color: darkkhaki;
       
    20     font-size:12px;
       
    21     font: bold;
       
    22 }
       
    23 
       
    24 QInputDialog {
       
    25 	background-color: cornsilk;
       
    26 	border-width: 2px;
       
    27 	border-style: solid;
       
    28     border-color: darkkhaki;
       
    29     font-size:12px;
       
    30     font: bold;
       
    31 }
       
    32 
       
    33 
       
    34 /*QPushButton*/
       
    35 QPushButton {
       
    36     color: #0a214c;
       
    37     background-color: palegoldenrod;
       
    38     border-width: 2px;
       
    39     border-color: darkkhaki;
       
    40     border-style: solid;
       
    41     border-radius: 5;
       
    42     padding: 3px;
       
    43     min-width: 100px;
       
    44     min-height: 32px;
       
    45     max-width: 100px;
       
    46     max-height: 32px;
       
    47     font-size:16px;
       
    48     font: bold;
       
    49 }
       
    50 
       
    51 QPushButton:hover {
       
    52    background-color: khaki;
       
    53 }
       
    54 
       
    55 QPushButton:pressed {
       
    56     padding-left: 2px;
       
    57     padding-top: 2px;
       
    58     background-color: #d0d67c;
       
    59 }
       
    60 
       
    61 
       
    62 QPushButton::disabled {
       
    63 	color: #ffffff;
       
    64 }
       
    65 
       
    66 QRadioButton {
       
    67     font: bold;
       
    68     font-size: 14px;
       
    69     border: none;
       
    70     padding: 0;
       
    71     background-color: cornsilk;
       
    72     color: black; 
       
    73     background-color: cornsilk;
       
    74     selection-color: #0a214c; 
       
    75     selection-background-color: #C19A6B;
       
    76 }
       
    77 
       
    78 QRadioButton:focus {
       
    79 	color:black;
       
    80 	background-color: cornsilk;
       
    81 }
       
    82 
       
    83 QRadioButton:selected {
       
    84     background-color: cornsilk;
       
    85     color:black;
       
    86 }
       
    87 
       
    88 QRadioButton:pressed {
       
    89     background-color: cornsilk;
       
    90     color:black;
       
    91 }
       
    92 
       
    93 
       
    94 /*QTabQWidget*/
       
    95 QTabWidget::pane { /* The tab widget frame */
       
    96     border-top: 2px solid #C2C7CB;
       
    97 }
       
    98 
       
    99 QTabWidget::tab-bar {
       
   100     left: 5px; /* move to the right by 5px */
       
   101 }
       
   102 
       
   103 /* Style the tab using the tab sub-control. Note that
       
   104     it reads QTabBar _not_ QTabWidget */
       
   105 QTabBar::tab {
       
   106     background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
       
   107                                 stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,
       
   108                                 stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);
       
   109     border: 2px solid #C4C4C3;
       
   110     border-bottom-color: #C2C7CB; /* same as the pane color */
       
   111     border-top-left-radius: 4px;
       
   112     border-top-right-radius: 4px;
       
   113     /*min-width: 5ex;*/
       
   114     padding: 2px;
       
   115     color: #0a214c;
       
   116     font-size:15px;
       
   117 }
       
   118 
       
   119 QTabBar::tab:selected, QTabBar::tab:hover {
       
   120     background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
       
   121                                 stop: 0 #fafafa, stop: 0.4 #f4f4f4,
       
   122                                 stop: 0.5 #e7e7e7, stop: 1.0 #fafafa);
       
   123 }
       
   124 
       
   125 QTabBar::tab:selected {
       
   126     border-color: #9B9B9B;
       
   127     border-bottom-color: #C2C7CB; /* same as pane color */
       
   128     font: bold;
       
   129     font-size:15px;
       
   130 }
       
   131 
       
   132 QTabBar::tab:!selected {
       
   133     margin-top: 2px; /* make non-selected tabs look smaller */
       
   134     font: bold;
       
   135     font-size:14px;
       
   136 }
       
   137 
       
   138 /* make use of negative margins for overlapping tabs */
       
   139 QTabBar::tab:selected {
       
   140     /* expand/overlap to the left and right by 4px */
       
   141     /*
       
   142     margin-left: -4px;
       
   143     margin-right: -4px;
       
   144     */
       
   145 }
       
   146 
       
   147 QTabBar::tab:first:selected {
       
   148     margin-left: 0; /* the first selected tab has nothing to overlap with on the left */
       
   149 }
       
   150 
       
   151 QTabBar::tab:last:selected {
       
   152     margin-right: 0; /* the last selected tab has nothing to overlap with on the right */
       
   153 }
       
   154 
       
   155 QTabBar::tab:only-one {
       
   156     margin: 0; /* if there is only one tab, we don't want overlapping margins */
       
   157 }
       
   158 
       
   159 
       
   160 /* QLabel */
       
   161 QLabel {
       
   162     font: bold;
       
   163     font-size: 14px;
       
   164     border: none;
       
   165     padding: 0;
       
   166     background: none;
       
   167     color: black;
       
   168     
       
   169 }
       
   170 
       
   171 /* QLabel */
       
   172 QCheckBox {
       
   173     font: bold;
       
   174     font-size: 14px;
       
   175     border: none;
       
   176     padding: 0;
       
   177     background-color: cornsilk;
       
   178     color: black; 
       
   179     background-color: cornsilk;
       
   180     selection-color: #0a214c; 
       
   181     selection-background-color: #C19A6B;
       
   182 }
       
   183 
       
   184 QCheckBox::focus {
       
   185 	color:black;
       
   186 	background-color: cornsilk;
       
   187 }
       
   188 
       
   189 QCheckBox:selected {
       
   190     background-color: cornsilk;
       
   191     color:black;
       
   192 }
       
   193 
       
   194 QCheckBox:pressed {
       
   195     background-color: cornsilk;
       
   196     color:black;
       
   197 }
       
   198 
       
   199 
       
   200 QFrame {
       
   201 	background-color: cornsilk;
       
   202 }
       
   203 
       
   204 QLineEdit, QPlainTextEdit {
       
   205 	background-color: cornsilk;
       
   206     border-width: 1px;
       
   207     padding: 1px;
       
   208     border-style: solid;
       
   209     border-color: darkkhaki;
       
   210     border-radius: 3px;
       
   211     color:black;
       
   212     font-size:14px;
       
   213 }
       
   214 
       
   215 QLineEdit:focus, QPlainTextEdit:focus {
       
   216     border-width: 3px;
       
   217     padding: 0px;
       
   218 }
       
   219 
       
   220 /*QComboBox*/
       
   221 
       
   222 QComboBox {
       
   223     background-color: cornsilk;
       
   224     selection-color: #0a214c; 
       
   225     selection-background-color: #C19A6B;
       
   226     color:black;
       
   227     font-size:20px;
       
   228     border-width: 1px;
       
   229     padding: 1px;
       
   230     border-style: solid;
       
   231     border-color: darkkhaki;
       
   232 }
       
   233 
       
   234 /*QGroupBox*/
       
   235 QGroupBox {
       
   236 	background-color: cornsilk;
       
   237 	margin-top: 2ex;
       
   238 	border: 2px solid gray;
       
   239 	border-radius: 5px;
       
   240 	
       
   241 
       
   242 }
       
   243 
       
   244 QGroupBox::title {
       
   245 	subcontrol-origin: margin;
       
   246 	padding: 0 3px;
       
   247 	color:black;
       
   248 	font-size:14px;
       
   249 	background-color: cornsilk;
       
   250 }
       
   251 
       
   252 
       
   253 /*QTreeWidget*/
       
   254 
       
   255 QTreeWidget {
       
   256     color: brown;
       
   257 	show-decoration-selected: 1;
       
   258 	border-width: 1px;
       
   259     padding: 1px;
       
   260     border-style: solid;
       
   261     border-color: darkkhaki;
       
   262     border-radius: 3px;
       
   263     background-color: cornsilk;
       
   264     selection-color: #0a214c; 
       
   265     selection-background-color: #C19A6B;
       
   266 }
       
   267 
       
   268 QHeaderView {
       
   269 	color : black;
       
   270 	border-width: 1px;
       
   271 	padding: 1px;
       
   272     border-style: solid;
       
   273     border-color: darkkhaki;
       
   274     border-radius: 3px;
       
   275     background-color: khaki;
       
   276 }
       
   277 
       
   278 QHeaderView::section {
       
   279 	color : black;
       
   280 	border-width: 0px;
       
   281 	padding: 0px;
       
   282     border-style: none;
       
   283     background-color: palegoldenrod;
       
   284 }
       
   285 
       
   286 
       
   287 QTreeWidget::item{
       
   288 	height:35px;
       
   289 	font-size:20px;
       
   290 }
       
   291 
       
   292 QTreeWidget::item:hover{
       
   293 	background-color: wheat;
       
   294 }
       
   295 
       
   296 QListView {
       
   297     color: brown;
       
   298     show-decoration-selected: 1;
       
   299     border-width: 1px;
       
   300     padding: 1px;
       
   301     border-style: solid;
       
   302     border-color: darkkhaki;
       
   303     border-radius: 3px;
       
   304     background-color: cornsilk;
       
   305     selection-color: #0a214c; 
       
   306     selection-background-color: #C19A6B;
       
   307     font-size:16px;
       
   308 }
       
   309 
       
   310 QListView::item:hover {
       
   311     background-color: wheat;
       
   312 }
       
   313 
       
   314 QListView::disabled {
       
   315 	color: #ffffff;
       
   316 	background-color: gray;
       
   317 }
       
   318 
       
   319 QListView::item {
       
   320 	height:30px;
       
   321 }
       
   322 
       
   323 QErrorMessage::text {
       
   324 	color: black;
       
   325 }
       
   326