File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,14 @@ func Theme(app *widgets.QApplication) {
17
17
background-color: #3a86ff;
18
18
color: white;
19
19
font-size: 72px;
20
- padding: 40px ;
20
+ padding: 160px ;
21
21
border: none;
22
22
border-radius: 10px;
23
23
}
24
+ QPushButton#connectButton{
25
+ background-color: #3a86ff;
26
+ color: white;
27
+ font-size: 36px;
28
+ }
24
29
` )
25
30
}
Original file line number Diff line number Diff line change @@ -113,9 +113,9 @@ func (w *MainWindow) initUI() {
113
113
w .portInputField .SetFont (gui .NewQFont2 ("Arial" , 16 , 1 , false ))
114
114
w .portInputField .SetPlaceholderText ("3306" )
115
115
116
+ w .connectButton .SetObjectName ("connectButton" )
116
117
w .connectButton = widgets .NewQPushButton2 ("Connect to database" , nil )
117
118
w .connectButton .ConnectClicked (w .buttonClicked )
118
- w .connectButton .SetStyleSheet ("background-color: #3a86ff; color: white; font-size: 18px;" )
119
119
120
120
w .errorLabel = widgets .NewQLabel (nil , 0 )
121
121
w .errorLabel .SetStyleSheet ("color: red" )
@@ -397,14 +397,14 @@ func (w *MainWindow) exitDatabase(_ bool) {
397
397
}
398
398
399
399
func main () {
400
+
400
401
app := widgets .NewQApplication (len ([]string {}), []string {})
402
+ appdata .Theme (app )
401
403
402
404
if core .QCoreApplication_Instance () == nil {
403
405
log .Fatal ("Failed to initialize QCoreApplication" )
404
406
}
405
407
406
- appdata .Theme (app )
407
-
408
408
mainWindow := NewMainWindow ()
409
409
mainWindow .Show ()
410
410
app .Exec ()
You can’t perform that action at this time.
0 commit comments