summaryrefslogtreecommitdiff
path: root/src/ui/util.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-09-08 17:35:36 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-09-08 17:35:36 +0300
commitbf7859acd90b398f0834e24e4675cad39806c2eb (patch)
tree9d8a1b3b8bbab22d676dae16348f44fa7bba6c84 /src/ui/util.c
parentb7b90c9e608f5f2d21c17c280183f66511627ccb (diff)
Cleanup
Diffstat (limited to 'src/ui/util.c')
-rw-r--r--src/ui/util.c49
1 files changed, 19 insertions, 30 deletions
diff --git a/src/ui/util.c b/src/ui/util.c
index a53041c2..0d9338b5 100644
--- a/src/ui/util.c
+++ b/src/ui/util.c
@@ -1836,39 +1836,28 @@ iWidget *makePreferences_Widget(void) {
1836 } 1836 }
1837 const iMenuItem aboutPanelItems[] = { 1837 const iMenuItem aboutPanelItems[] = {
1838 { format_CStr("heading text:%s", cstr_String(aboutText)) }, 1838 { format_CStr("heading text:%s", cstr_String(aboutText)) },
1839 { "button text:" globe_Icon " By @jk@skyjake.fi", 0, 0, 1839 { "button text:" globe_Icon " By @jk@skyjake.fi", 0, 0, "!open url:https://skyjake.fi/@jk" },
1840 "!open url:https://skyjake.fi/@jk" }, 1840 { "button text:" clock_Icon " ${menu.releasenotes}", 0, 0, "!open url:about:version" },
1841 { "button text:" clock_Icon " ${menu.releasenotes}", 0, 0,
1842 "!open url:about:version" },
1843 { "padding" }, 1841 { "padding" },
1844 { "button text:" info_Icon " ${menu.aboutpages}", 0, 0, 1842 { "button text:" info_Icon " ${menu.aboutpages}", 0, 0, "!open url:about:about" },
1845 "!open url:about:about" }, 1843 { "button text:" bug_Icon " ${menu.debug}", 0, 0, "!open url:about:debug" },
1846 { "button text:" bug_Icon " ${menu.debug}", 0, 0, 1844 { NULL }
1847 "!open url:about:debug" }, 1845 };
1846 const iMenuItem items[] = {
1847 { "panel icon:0x2699 id:heading.prefs.general", 0, 0, (const void *) generalPanelItems },
1848 { "panel icon:0x1f5a7 id:heading.prefs.network", 0, 0, (const void *) networkPanelItems },
1849 { "panel text:" person_Icon " ${sidebar.identities}", 0, 0, (const void *) identityPanelItems },
1850 { "padding" },
1851 { "panel icon:0x1f4f1 id:heading.prefs.interface", 0, 0, (const void *) uiPanelItems },
1852 { "panel icon:0x1f3a8 id:heading.prefs.colors", 0, 0, (const void *) colorPanelItems },
1853 { "panel icon:0x1f5da id:heading.prefs.fonts", 0, 0, (const void *) fontPanelItems },
1854 { "panel icon:0x1f660 id:heading.prefs.style", 0, 0, (const void *) stylePanelItems },
1855 { "padding" },
1856 { "button text:" info_Icon " ${menu.help}", 0, 0, "!open url:about:help" },
1857 { "padding" },
1858 { "panel text:" planet_Icon " ${menu.about}", 0, 0, (const void *) aboutPanelItems },
1848 { NULL } 1859 { NULL }
1849 }; 1860 };
1850 const iMenuItem items[] = { { "panel icon:0x2699 id:heading.prefs.general",
1851 '1', 0, (const void *) generalPanelItems },
1852 { "panel icon:0x1f5a7 id:heading.prefs.network",
1853 '2', 0, (const void *) networkPanelItems },
1854 { "panel text:" person_Icon " ${sidebar.identities}",
1855 '3', 0, (const void *) identityPanelItems },
1856 { "padding" },
1857 { "panel icon:0x1f4f1 id:heading.prefs.interface",
1858 '4', 0, (const void *) uiPanelItems },
1859 { "panel icon:0x1f3a8 id:heading.prefs.colors",
1860 '5', 0, (const void *) colorPanelItems },
1861 { "panel icon:0x1f5da id:heading.prefs.fonts",
1862 '6', 0, (const void *) fontPanelItems },
1863 { "panel icon:0x1f660 id:heading.prefs.style",
1864 '7', 0, (const void *) stylePanelItems },
1865 { "padding" },
1866 { "button text:" info_Icon " ${menu.help}",
1867 0, 0, "!open url:about:help" },
1868 { "padding" },
1869 { "panel text:" planet_Icon " ${menu.about}",
1870 0, 0, (const void *) aboutPanelItems },
1871 { NULL } };
1872 iWidget *dlg = makeSplitMultiPanel_Mobile(items); 1861 iWidget *dlg = makeSplitMultiPanel_Mobile(items);
1873 setupSheetTransition_Mobile(dlg, iTrue); 1862 setupSheetTransition_Mobile(dlg, iTrue);
1874 return dlg; 1863 return dlg;