Skip to content

Commit 5da50a4

Browse files
committed
chore: update theme file
1 parent cc59469 commit 5da50a4

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

files/theme.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,14 @@ func Theme(app *widgets.QApplication) {
1717
background-color: #3a86ff;
1818
color: white;
1919
font-size: 72px;
20-
padding: 40px;
20+
padding: 160px;
2121
border: none;
2222
border-radius: 10px;
2323
}
24+
QPushButton#connectButton{
25+
background-color: #3a86ff;
26+
color: white;
27+
font-size: 36px;
28+
}
2429
`)
2530
}

main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ func (w *MainWindow) initUI() {
113113
w.portInputField.SetFont(gui.NewQFont2("Arial", 16, 1, false))
114114
w.portInputField.SetPlaceholderText("3306")
115115

116+
w.connectButton.SetObjectName("connectButton")
116117
w.connectButton = widgets.NewQPushButton2("Connect to database", nil)
117118
w.connectButton.ConnectClicked(w.buttonClicked)
118-
w.connectButton.SetStyleSheet("background-color: #3a86ff; color: white; font-size: 18px;")
119119

120120
w.errorLabel = widgets.NewQLabel(nil, 0)
121121
w.errorLabel.SetStyleSheet("color: red")
@@ -397,14 +397,14 @@ func (w *MainWindow) exitDatabase(_ bool) {
397397
}
398398

399399
func main() {
400+
400401
app := widgets.NewQApplication(len([]string{}), []string{})
402+
appdata.Theme(app)
401403

402404
if core.QCoreApplication_Instance() == nil {
403405
log.Fatal("Failed to initialize QCoreApplication")
404406
}
405407

406-
appdata.Theme(app)
407-
408408
mainWindow := NewMainWindow()
409409
mainWindow.Show()
410410
app.Exec()

0 commit comments

Comments
 (0)