|
|
|
@ -20,7 +20,7 @@ method view(app: AppState): Widget = |
|
|
|
|
defaultSize = (1024, 768) |
|
|
|
|
HeaderBar {.addTitlebar.}: |
|
|
|
|
Icon {.addLeft.}: |
|
|
|
|
name = "EZ-Bkup-icon" |
|
|
|
|
name = "ez_bkup" |
|
|
|
|
pixelSize = 40 |
|
|
|
|
margin = 4 |
|
|
|
|
# Button to open the main menu |
|
|
|
@ -66,5 +66,8 @@ when isMainModule: |
|
|
|
|
# Loads the model from the database and starts the application. |
|
|
|
|
#databasePath is coming from shared.nim |
|
|
|
|
let model = newRoutineModel(databasePath) |
|
|
|
|
brew("org.itwrx.EZ-Bkup", gui(App(routineModel = model)), darkTheme = true, icons=["icons/"], stylesheets=[loadStylesheet("styles.css")]) |
|
|
|
|
#if running manually from src directory. |
|
|
|
|
#brew("org.itwrx.EZ-Bkup", gui(App(routineModel = model)), darkTheme = true, icons=["icons/"], stylesheets=[loadStylesheet("styles.css")]) |
|
|
|
|
#if installed. |
|
|
|
|
brew("org.itwrx.EZ-Bkup", gui(App(routineModel = model)), darkTheme = true, icons=["/usr/local/share/ez_bkup/icons/"], stylesheets=[loadStylesheet("/usr/local/share/ez_bkup/styles.css")]) |
|
|
|
|
|