Browse Source

Added the logo to the main window

Rafael Arce Nazario 9 years ago
parent
commit
7e4ee4c981
3 changed files with 48 additions and 1 deletions
  1. 2
    0
      images.qrc
  2. 1
    1
      mainwindow.ui
  3. 45
    0
      resources/style.css

+ 2
- 0
images.qrc View File

@@ -6,5 +6,7 @@
6 6
         <file>resources/d4.png</file>
7 7
         <file>resources/d5.png</file>
8 8
         <file>resources/d6.png</file>
9
+        <file>resources/logo.png</file>
10
+        <file>resources/style.css</file>
9 11
     </qresource>
10 12
 </RCC>

+ 1
- 1
mainwindow.ui View File

@@ -151,7 +151,7 @@
151 151
      </rect>
152 152
     </property>
153 153
     <property name="styleSheet">
154
-     <string notr="true">background-image: url(/home/rgb/Desktop/eip/CaesarCipher/logo.png);
154
+     <string notr="true">background-image: url(:/images/resources/logo.png);
155 155
 border: 0px;
156 156
 </string>
157 157
     </property>

+ 45
- 0
resources/style.css View File

@@ -0,0 +1,45 @@
1
+QWidget {
2
+    background-color: #F2F1F0;
3
+    }
4
+
5
+QWidget > QPushButton
6
+{
7
+    background-color: #ed1c24;
8
+     border-style: outset;
9
+     border-width: 2px;
10
+     border-color:#b51218;
11
+        color:#f8f8f8;
12
+}
13
+
14
+QPushButton:hover
15
+{
16
+    background-color: #de1219;
17
+    border-color:#ed1d24;
18
+}
19
+QLineEdit {
20
+    background-color:white;
21
+    color: #646464;
22
+}
23
+#Banner {
24
+        background-color:#c2050b;
25
+        border-color:#525662;
26
+}
27
+ClickableLabel, #lblMergedImage {
28
+    background-color:white;
29
+}
30
+#LogoFrame {
31
+        background-image: url(://logo);
32
+        border: 0px;
33
+        repeat: no-repeat;
34
+}
35
+#Banner > #HeaderLabel{
36
+    background-color:#c2050b;
37
+    color:#f9ffff;;
38
+}
39
+
40
+#spinBox{
41
+    background-color:white;
42
+}
43
+QLabel {
44
+    color:#646464;
45
+}