Revision | d039bc7f6fc5f0193659f3769dd0862e493dcea7 (tree) |
---|---|
Time | 2014-04-11 12:48:56 |
Author | ![]() |
Commiter | jakago |
GUI変更中
@@ -1,6 +1,23 @@ | ||
1 | 1 | QWidget { |
2 | - background-color: #698aab; | |
3 | - color: #e7e7eb; | |
2 | + background-color: gainsboro; | |
3 | + /*background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #f6f7fa, stop: 1 #dadbde);*/ | |
4 | + /*color: #e7e7eb;*/ | |
5 | +} | |
6 | + | |
7 | +QMenuBar { | |
8 | + background-color: gainsboro; | |
9 | +} | |
10 | + | |
11 | +QMenuBar::item { | |
12 | + background: transparent; | |
13 | +} | |
14 | + | |
15 | +QMenuBar::item:selected { | |
16 | + background: #a8a8a8; | |
17 | +} | |
18 | + | |
19 | +QMenuBar::item:pressed { | |
20 | + background: #888888; | |
4 | 21 | } |
5 | 22 | |
6 | 23 | /* |
@@ -9,25 +26,34 @@ QPlainTextEdit { | ||
9 | 26 | } |
10 | 27 | */ |
11 | 28 | |
12 | -/* We provide a min-width and min-height for push buttons | |
13 | - so that they look elegant regardless of the width of the text. */ | |
14 | -/*QPushButton { | |
15 | - background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #f6f7fa, stop: 1 #dadbde); | |
16 | - border: 1px solid #8f8f91; | |
17 | - border-radius: 6px; | |
29 | +QPushButton { | |
30 | + /*background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #f6f7fa, stop: 1 #dadbde);*/ | |
31 | + background-color: gainsboro; | |
32 | + border-top: 1px solid white; | |
33 | + border-left: 1px solid white; | |
34 | + border-right: 2px solid dimgray; | |
35 | + border-bottom: 2px solid dimgray; | |
36 | + border-radius: 10px; | |
37 | + /* | |
18 | 38 | padding: 3px; |
19 | 39 | min-width: 9ex; |
20 | 40 | min-height: 2.5ex; |
21 | -}*/ | |
41 | + */ | |
42 | +} | |
22 | 43 | |
23 | -/*QPushButton:hover { | |
44 | +/* | |
45 | +QPushButton:hover { | |
24 | 46 | background-color: steelblue; |
25 | -}*/ | |
47 | +} | |
48 | +*/ | |
26 | 49 | |
27 | -/* Increase the padding, so the text is shifted when the button is | |
28 | - pressed. */ | |
29 | -/*QPushButton:pressed { | |
50 | +QPushButton:pressed { | |
51 | + border-top: 2px solid dimgray; | |
52 | + border-left: 2px solid dimgray; | |
53 | + border-right: 1px solid white; | |
54 | + border-bottom: 1px solid white; | |
55 | + /* | |
30 | 56 | padding-left: 5px; |
31 | 57 | padding-top: 5px; |
32 | - background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #dadbde, stop: 1 #f6f7fa); | |
33 | -}*/ | |
58 | + */ | |
59 | +} |
@@ -6,8 +6,8 @@ | ||
6 | 6 | <rect> |
7 | 7 | <x>0</x> |
8 | 8 | <y>0</y> |
9 | - <width>541</width> | |
10 | - <height>453</height> | |
9 | + <width>500</width> | |
10 | + <height>420</height> | |
11 | 11 | </rect> |
12 | 12 | </property> |
13 | 13 | <property name="sizePolicy"> |
@@ -18,16 +18,21 @@ | ||
18 | 18 | </property> |
19 | 19 | <property name="minimumSize"> |
20 | 20 | <size> |
21 | - <width>541</width> | |
22 | - <height>453</height> | |
21 | + <width>500</width> | |
22 | + <height>420</height> | |
23 | 23 | </size> |
24 | 24 | </property> |
25 | 25 | <property name="maximumSize"> |
26 | 26 | <size> |
27 | - <width>541</width> | |
28 | - <height>453</height> | |
27 | + <width>500</width> | |
28 | + <height>420</height> | |
29 | 29 | </size> |
30 | 30 | </property> |
31 | + <property name="font"> | |
32 | + <font> | |
33 | + <pointsize>11</pointsize> | |
34 | + </font> | |
35 | + </property> | |
31 | 36 | <property name="windowTitle"> |
32 | 37 | <string>語学講座ダウンローダ</string> |
33 | 38 | </property> |
@@ -41,10 +46,10 @@ | ||
41 | 46 | <widget class="QWidget" name="gridLayoutWidget_3"> |
42 | 47 | <property name="geometry"> |
43 | 48 | <rect> |
44 | - <x>9</x> | |
45 | - <y>9</y> | |
46 | - <width>521</width> | |
47 | - <height>401</height> | |
49 | + <x>10</x> | |
50 | + <y>10</y> | |
51 | + <width>481</width> | |
52 | + <height>361</height> | |
48 | 53 | </rect> |
49 | 54 | </property> |
50 | 55 | <layout class="QGridLayout" name="gridLayout_3" rowstretch="0,0,0,0,0,0,0,0,0,0,0,0,0,0"> |
@@ -60,7 +65,7 @@ | ||
60 | 65 | </property> |
61 | 66 | <property name="font"> |
62 | 67 | <font> |
63 | - <pointsize>12</pointsize> | |
68 | + <pointsize>11</pointsize> | |
64 | 69 | </font> |
65 | 70 | </property> |
66 | 71 | <property name="text"> |
@@ -85,7 +90,7 @@ | ||
85 | 90 | </property> |
86 | 91 | <property name="font"> |
87 | 92 | <font> |
88 | - <pointsize>12</pointsize> | |
93 | + <pointsize>11</pointsize> | |
89 | 94 | </font> |
90 | 95 | </property> |
91 | 96 | <property name="text"> |
@@ -110,7 +115,7 @@ | ||
110 | 115 | </property> |
111 | 116 | <property name="font"> |
112 | 117 | <font> |
113 | - <pointsize>12</pointsize> | |
118 | + <pointsize>11</pointsize> | |
114 | 119 | </font> |
115 | 120 | </property> |
116 | 121 | <property name="text"> |
@@ -145,7 +150,7 @@ | ||
145 | 150 | </property> |
146 | 151 | <property name="font"> |
147 | 152 | <font> |
148 | - <pointsize>12</pointsize> | |
153 | + <pointsize>11</pointsize> | |
149 | 154 | </font> |
150 | 155 | </property> |
151 | 156 | <property name="text"> |
@@ -170,7 +175,7 @@ | ||
170 | 175 | </property> |
171 | 176 | <property name="font"> |
172 | 177 | <font> |
173 | - <pointsize>12</pointsize> | |
178 | + <pointsize>11</pointsize> | |
174 | 179 | </font> |
175 | 180 | </property> |
176 | 181 | <property name="text"> |
@@ -198,7 +203,7 @@ | ||
198 | 203 | </property> |
199 | 204 | <property name="font"> |
200 | 205 | <font> |
201 | - <pointsize>12</pointsize> | |
206 | + <pointsize>11</pointsize> | |
202 | 207 | </font> |
203 | 208 | </property> |
204 | 209 | <property name="text"> |
@@ -226,7 +231,7 @@ | ||
226 | 231 | </property> |
227 | 232 | <property name="font"> |
228 | 233 | <font> |
229 | - <pointsize>12</pointsize> | |
234 | + <pointsize>11</pointsize> | |
230 | 235 | </font> |
231 | 236 | </property> |
232 | 237 | <property name="text"> |
@@ -248,14 +253,14 @@ | ||
248 | 253 | </property> |
249 | 254 | <property name="font"> |
250 | 255 | <font> |
251 | - <pointsize>12</pointsize> | |
256 | + <pointsize>11</pointsize> | |
252 | 257 | </font> |
253 | 258 | </property> |
254 | 259 | <property name="layoutDirection"> |
255 | 260 | <enum>Qt::LeftToRight</enum> |
256 | 261 | </property> |
257 | 262 | <property name="text"> |
258 | - <string> 拡張子:</string> | |
263 | + <string> 拡張子:</string> | |
259 | 264 | </property> |
260 | 265 | <property name="alignment"> |
261 | 266 | <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> |
@@ -265,14 +270,14 @@ | ||
265 | 270 | <item> |
266 | 271 | <widget class="QComboBox" name="comboBox_extension"> |
267 | 272 | <property name="sizePolicy"> |
268 | - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> | |
273 | + <sizepolicy hsizetype="Fixed" vsizetype="Preferred"> | |
269 | 274 | <horstretch>0</horstretch> |
270 | 275 | <verstretch>0</verstretch> |
271 | 276 | </sizepolicy> |
272 | 277 | </property> |
273 | 278 | <property name="font"> |
274 | 279 | <font> |
275 | - <pointsize>12</pointsize> | |
280 | + <pointsize>11</pointsize> | |
276 | 281 | </font> |
277 | 282 | </property> |
278 | 283 | <item> |
@@ -341,7 +346,7 @@ | ||
341 | 346 | </property> |
342 | 347 | <property name="font"> |
343 | 348 | <font> |
344 | - <pointsize>12</pointsize> | |
349 | + <pointsize>11</pointsize> | |
345 | 350 | </font> |
346 | 351 | </property> |
347 | 352 | <property name="text"> |
@@ -366,7 +371,7 @@ | ||
366 | 371 | </property> |
367 | 372 | <property name="font"> |
368 | 373 | <font> |
369 | - <pointsize>12</pointsize> | |
374 | + <pointsize>11</pointsize> | |
370 | 375 | </font> |
371 | 376 | </property> |
372 | 377 | <property name="text"> |
@@ -391,7 +396,7 @@ | ||
391 | 396 | </property> |
392 | 397 | <property name="font"> |
393 | 398 | <font> |
394 | - <pointsize>12</pointsize> | |
399 | + <pointsize>11</pointsize> | |
395 | 400 | </font> |
396 | 401 | </property> |
397 | 402 | <property name="text"> |
@@ -416,7 +421,7 @@ | ||
416 | 421 | </property> |
417 | 422 | <property name="font"> |
418 | 423 | <font> |
419 | - <pointsize>12</pointsize> | |
424 | + <pointsize>11</pointsize> | |
420 | 425 | </font> |
421 | 426 | </property> |
422 | 427 | <property name="text"> |
@@ -455,7 +460,7 @@ | ||
455 | 460 | </property> |
456 | 461 | <property name="font"> |
457 | 462 | <font> |
458 | - <pointsize>12</pointsize> | |
463 | + <pointsize>11</pointsize> | |
459 | 464 | </font> |
460 | 465 | </property> |
461 | 466 | <property name="text"> |
@@ -480,7 +485,7 @@ | ||
480 | 485 | </property> |
481 | 486 | <property name="font"> |
482 | 487 | <font> |
483 | - <pointsize>12</pointsize> | |
488 | + <pointsize>11</pointsize> | |
484 | 489 | </font> |
485 | 490 | </property> |
486 | 491 | <property name="text"> |
@@ -505,7 +510,7 @@ | ||
505 | 510 | </property> |
506 | 511 | <property name="font"> |
507 | 512 | <font> |
508 | - <pointsize>12</pointsize> | |
513 | + <pointsize>11</pointsize> | |
509 | 514 | </font> |
510 | 515 | </property> |
511 | 516 | <property name="text"> |
@@ -530,7 +535,7 @@ | ||
530 | 535 | </property> |
531 | 536 | <property name="font"> |
532 | 537 | <font> |
533 | - <pointsize>12</pointsize> | |
538 | + <pointsize>11</pointsize> | |
534 | 539 | </font> |
535 | 540 | </property> |
536 | 541 | <property name="text"> |
@@ -555,7 +560,7 @@ | ||
555 | 560 | </property> |
556 | 561 | <property name="font"> |
557 | 562 | <font> |
558 | - <pointsize>12</pointsize> | |
563 | + <pointsize>11</pointsize> | |
559 | 564 | </font> |
560 | 565 | </property> |
561 | 566 | <property name="text"> |
@@ -580,7 +585,7 @@ | ||
580 | 585 | </property> |
581 | 586 | <property name="font"> |
582 | 587 | <font> |
583 | - <pointsize>12</pointsize> | |
588 | + <pointsize>11</pointsize> | |
584 | 589 | </font> |
585 | 590 | </property> |
586 | 591 | <property name="text"> |
@@ -605,7 +610,7 @@ | ||
605 | 610 | </property> |
606 | 611 | <property name="font"> |
607 | 612 | <font> |
608 | - <pointsize>12</pointsize> | |
613 | + <pointsize>11</pointsize> | |
609 | 614 | </font> |
610 | 615 | </property> |
611 | 616 | <property name="text"> |
@@ -630,7 +635,7 @@ | ||
630 | 635 | </property> |
631 | 636 | <property name="font"> |
632 | 637 | <font> |
633 | - <pointsize>12</pointsize> | |
638 | + <pointsize>11</pointsize> | |
634 | 639 | </font> |
635 | 640 | </property> |
636 | 641 | <property name="text"> |
@@ -655,7 +660,7 @@ | ||
655 | 660 | </property> |
656 | 661 | <property name="font"> |
657 | 662 | <font> |
658 | - <pointsize>12</pointsize> | |
663 | + <pointsize>11</pointsize> | |
659 | 664 | </font> |
660 | 665 | </property> |
661 | 666 | <property name="text"> |
@@ -680,7 +685,7 @@ | ||
680 | 685 | </property> |
681 | 686 | <property name="font"> |
682 | 687 | <font> |
683 | - <pointsize>12</pointsize> | |
688 | + <pointsize>11</pointsize> | |
684 | 689 | </font> |
685 | 690 | </property> |
686 | 691 | <property name="text"> |
@@ -1042,7 +1047,7 @@ | ||
1042 | 1047 | <rect> |
1043 | 1048 | <x>0</x> |
1044 | 1049 | <y>0</y> |
1045 | - <width>541</width> | |
1050 | + <width>500</width> | |
1046 | 1051 | <height>22</height> |
1047 | 1052 | </rect> |
1048 | 1053 | </property> |
@@ -32,7 +32,7 @@ | ||
32 | 32 | namespace { |
33 | 33 | const QString SETTING_GROUP( "MessageWindow" ); |
34 | 34 | const QString SETTING_GEOMETRY( "geometry" ); |
35 | - const int DEFAULT_WIDTH = 541; | |
35 | + const int DEFAULT_WIDTH = 500; | |
36 | 36 | const int DEFAULT_HEIGHT = 300; |
37 | 37 | } |
38 | 38 |
@@ -63,6 +63,9 @@ void MessageWindow::setupGui() { | ||
63 | 63 | textEdit = new QPlainTextEdit; |
64 | 64 | textEdit->setReadOnly( true ); |
65 | 65 | textEdit->setWordWrapMode( QTextOption::WrapAnywhere ); |
66 | + QFont* font = new QFont(); | |
67 | + font->setPixelSize( 11 ); | |
68 | + textEdit->setFont( *font ); | |
66 | 69 | |
67 | 70 | clearTextButton = new QPushButton( QString::fromUtf8( "クリア" ) ); |
68 | 71 | connect( clearTextButton, SIGNAL(clicked()), this, SLOT(clearText()) ); |
@@ -10,6 +10,11 @@ | ||
10 | 10 | <height>300</height> |
11 | 11 | </rect> |
12 | 12 | </property> |
13 | + <property name="font"> | |
14 | + <font> | |
15 | + <pointsize>11</pointsize> | |
16 | + </font> | |
17 | + </property> | |
13 | 18 | <property name="windowTitle"> |
14 | 19 | <string>Form</string> |
15 | 20 | </property> |
@@ -28,6 +33,11 @@ | ||
28 | 33 | </property> |
29 | 34 | <item> |
30 | 35 | <widget class="QPlainTextEdit" name="plainTextEdit"> |
36 | + <property name="font"> | |
37 | + <font> | |
38 | + <pointsize>11</pointsize> | |
39 | + </font> | |
40 | + </property> | |
31 | 41 | <property name="readOnly"> |
32 | 42 | <bool>false</bool> |
33 | 43 | </property> |