application/application.c

changeset 33
cdeb0dc47ef5
parent 29
3fc287f06305
child 35
834d9c15a69f
--- a/application/application.c	Sun Jun 09 15:43:08 2024 +0200
+++ b/application/application.c	Sun Jun 09 16:06:40 2024 +0200
@@ -75,42 +75,41 @@
 }
 
 void application_create_menu(void) {
-	// menu
+    // menu
 
 
-	// toolbar
-	ui_toolbar_item("Home", .icon = "Home");
-	ui_toolbar_item("NewWindow", .icon = "NewWindow", .onclick = action_window_new);
-	ui_toolbar_item("Refresh", .icon = "Refresh", .onclick = action_refresh);
+    // toolbar
+    ui_toolbar_item("Home", .icon = UI_ICON_HOME);
+    ui_toolbar_item("NewWindow", .icon = UI_ICON_NEW_WINDOW, .onclick = action_window_new);
+    ui_toolbar_item("Refresh", .icon = UI_ICON_REFRESH, .onclick = action_refresh);
     ui_toolbar_menu("Repo", .label = "Repository") {
         ui_menu_itemlist(.varname = "repolist", .getvalue = davrepo_getname, .onselect = action_repo_selected);
     }
-	ui_toolbar_item("NewFolder", .icon = "NewFolder", .onclick = action_mkcol);
-	ui_toolbar_item("NewFile", .icon = "Add", .onclick = action_newfile);
-	ui_toolbar_item("Upload", .label = "Upload", .icon = "Upload", .onclick = action_upload_file);
-	ui_toolbar_item("Download", .icon = "SaveLocal", .onclick = action_download);
-	ui_toolbar_item("Remove", .icon = "Delete", .onclick = action_delete );
-	ui_toolbar_toggleitem("LocalBrowser", .icon = "DockLeft", .label = "Local Browser");
-	ui_toolbar_toggleitem("PreviewPane", .icon = "DockRight");
+    ui_toolbar_item("NewFolder", .icon = UI_ICON_NEW_FOLDER, .onclick = action_mkcol);
+    ui_toolbar_item("NewFile", .icon = UI_ICON_ADD, .onclick = action_newfile);
+    ui_toolbar_item("Upload", .label = "Upload", .icon = UI_ICON_UPLOAD, .onclick = action_upload_file);
+    ui_toolbar_item("Download", .icon = UI_ICON_SAVE_LOCAL, .onclick = action_download);
+    ui_toolbar_item("Remove", .icon = UI_ICON_DELETE, .onclick = action_delete );
+    ui_toolbar_toggleitem("LocalBrowser", .icon = UI_ICON_DOCK_LEFT, .label = "Local Browser");
+    ui_toolbar_toggleitem("PreviewPane", .icon = UI_ICON_DOCK_RIGHT);
 
-	ui_toolbar_appmenu() {
-		ui_menuitem("TODO", NULL);
-	}
-
+    ui_toolbar_appmenu() {
+        ui_menuitem("TODO", NULL);
+    }
 
-	ui_toolbar_add_default("Home", UI_TOOLBAR_LEFT);
-	ui_toolbar_add_default("NewWindow", UI_TOOLBAR_LEFT);
-	ui_toolbar_add_default("Refresh", UI_TOOLBAR_LEFT);
-	ui_toolbar_add_default("Repo", UI_TOOLBAR_LEFT);
+    ui_toolbar_add_default("Home", UI_TOOLBAR_LEFT);
+    ui_toolbar_add_default("NewWindow", UI_TOOLBAR_LEFT);
+    ui_toolbar_add_default("Refresh", UI_TOOLBAR_LEFT);
+    ui_toolbar_add_default("Repo", UI_TOOLBAR_LEFT);
 
-	ui_toolbar_add_default("NewFolder", UI_TOOLBAR_CENTER);
-	ui_toolbar_add_default("NewFile", UI_TOOLBAR_CENTER);
-	ui_toolbar_add_default("Remove", UI_TOOLBAR_CENTER);
-	ui_toolbar_add_default("Download", UI_TOOLBAR_CENTER);
-	ui_toolbar_add_default("Upload", UI_TOOLBAR_CENTER);
+    ui_toolbar_add_default("NewFolder", UI_TOOLBAR_CENTER);
+    ui_toolbar_add_default("NewFile", UI_TOOLBAR_CENTER);
+    ui_toolbar_add_default("Remove", UI_TOOLBAR_CENTER);
+    ui_toolbar_add_default("Download", UI_TOOLBAR_CENTER);
+    ui_toolbar_add_default("Upload", UI_TOOLBAR_CENTER);
 
-	ui_toolbar_add_default("LocalBrowser", UI_TOOLBAR_RIGHT);
-	ui_toolbar_add_default("PreviewPane", UI_TOOLBAR_RIGHT);
+    ui_toolbar_add_default("LocalBrowser", UI_TOOLBAR_RIGHT);
+    ui_toolbar_add_default("PreviewPane", UI_TOOLBAR_RIGHT);
 }
 
 

mercurial