@@ -3,6 +3,7 @@ package main
33import (
44 "context"
55 "embed"
6+ "fmt"
67 "github.com/wailsapp/wails/v2"
78 "github.com/wailsapp/wails/v2/pkg/menu"
89 "github.com/wailsapp/wails/v2/pkg/options"
@@ -25,6 +26,8 @@ var icon []byte
2526var version = "0.0.0"
2627var gaMeasurementID , gaSecretKey string
2728
29+ const appName = "Tiny RDM"
30+
2831func main () {
2932 // Create an instance of the app structure
3033 sysSvc := services .System ()
@@ -43,28 +46,29 @@ func main() {
4346 }
4447
4548 // menu
49+ isMacOS := runtime .GOOS == "darwin"
4650 appMenu := menu .NewMenu ()
47- if runtime . GOOS == "darwin" {
51+ if isMacOS {
4852 appMenu .Append (menu .AppMenu ())
4953 appMenu .Append (menu .EditMenu ())
5054 appMenu .Append (menu .WindowMenu ())
5155 }
5256
5357 // Create application with options
5458 err := wails .Run (& options.App {
55- Title : "Tiny RDM" ,
59+ Title : appName ,
5660 Width : windowWidth ,
5761 Height : windowHeight ,
5862 MinWidth : consts .MIN_WINDOW_WIDTH ,
5963 MinHeight : consts .MIN_WINDOW_HEIGHT ,
6064 WindowStartState : windowStartState ,
61- Frameless : runtime . GOOS != "darwin" ,
65+ Frameless : ! isMacOS ,
6266 Menu : appMenu ,
6367 EnableDefaultContextMenu : true ,
6468 AssetServer : & assetserver.Options {
6569 Assets : assets ,
6670 },
67- BackgroundColour : options .NewRGBA (27 , 38 , 54 , 0 ),
71+ BackgroundColour : options .NewRGBA (255 , 255 , 255 , 0 ),
6872 StartHidden : true ,
6973 OnStartup : func (ctx context.Context ) {
7074 sysSvc .Start (ctx , version )
@@ -105,20 +109,20 @@ func main() {
105109 Mac : & mac.Options {
106110 TitleBar : mac .TitleBarHiddenInset (),
107111 About : & mac.AboutInfo {
108- Title : "Tiny RDM " + version ,
112+ Title : fmt . Sprintf ( "%s %s" , appName , version ) ,
109113 Message : "A modern lightweight cross-platform Redis desktop client.\n \n Copyright © 2024" ,
110114 Icon : icon ,
111115 },
112116 WebviewIsTransparent : false ,
113117 WindowIsTranslucent : false ,
114118 },
115119 Windows : & windows.Options {
116- WebviewIsTransparent : true ,
117- WindowIsTranslucent : true ,
120+ WebviewIsTransparent : false ,
121+ WindowIsTranslucent : false ,
118122 DisableFramelessWindowDecorations : false ,
119123 },
120124 Linux : & linux.Options {
121- ProgramName : "Tiny RDM" ,
125+ ProgramName : appName ,
122126 Icon : icon ,
123127 WebviewGpuPolicy : linux .WebviewGpuPolicyOnDemand ,
124128 WindowIsTranslucent : true ,
0 commit comments