summaryrefslogtreecommitdiff
path: root/ui/graphicsui.sh
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2016-12-24 23:16:47 +0000
committerV3n3RiX <venerix@redcorelinux.org>2016-12-24 23:16:47 +0000
commit30f4daf518bf907e560f9a60da6ae76fce86fb29 (patch)
tree046ec79762a2c1f0154448e4c9864c074dcb9605 /ui/graphicsui.sh
parent6b3099135638121af264e3b37e0232a44585d3d7 (diff)
add button icons, improve main UI, now it looks stunning
Diffstat (limited to 'ui/graphicsui.sh')
-rwxr-xr-xui/graphicsui.sh36
1 files changed, 36 insertions, 0 deletions
diff --git a/ui/graphicsui.sh b/ui/graphicsui.sh
new file mode 100755
index 0000000..5c3f243
--- /dev/null
+++ b/ui/graphicsui.sh
@@ -0,0 +1,36 @@
+#!/usr/bin/env bash
+
+# create graphics user interface
+export local graphicsui='
+<window title="Sisyphus - A simple Epkg GUI" window-position="1" icon-name="gtk-search" modal="true" resizable="false" width-request="800" height-request="600">
+<vbox>
+<frame Graphics>
+ <hbox space-expand="true" space-extend="true">
+ <table hscrollbar-policy="1" vscrollbar-policy="1" exported-column="1">
+ <variable>graphics</variable>
+ <label>Application Category|Application Name|Application Description</label>
+ <item>media-gfx|gimp|GNU Image Manipulation Program</item>
+ </table>
+ </hbox>
+ <hbox space-expand="false" space-extend="false">
+ <button space-expand="true" space-extend="true" label-text="install">
+ <label>Install package</label>
+ <action>$showprogress epkg autoinstall $graphics</action>
+ </button>
+ <button space-expand="true" space-extend="true" label-text="uninstall">
+ <label>Uninstall package</label>
+ <action>$showprogress epkg autoremove $graphics</action>
+ </button>
+ <button space-expand="true" space-extend="true" label-text="home">
+ <label>Back home</label>
+ <action signal="button-press-event">gtkdialog --space-expand=true --space-fill=true --program=mainui &</action>
+ <action signal="button-release-event">EXIT:ok</action>
+ </button>
+ <button space-expand="true" space-extend="true" label-text="exit">
+ <label>Exit</label>
+ <action>EXIT:ok</action>
+ </button>
+ </hbox>
+</frame>
+</vbox>
+</window>'