rearranged code blocks

This commit is contained in:
Candifloss 2024-08-06 23:27:11 +05:30
parent ea9c4c1fa3
commit 6629ee5b9d
2 changed files with 34 additions and 16 deletions

View File

@ -1,18 +1,3 @@
(defwidget dock_widg []
(box
:class "dock_widg"
:active false
:halign "fill"
:height 50
:width 200
:active true
(dock_icon :pinned_app "${apps}") ;These widgs are for testing
(dock_icon :pinned_app "${firefox}")
(dock_icon :pinned_app "${files}")
(dock_icon :pinned_app "${terminal}")
)
)
(defwidget dock_icon [pinned_app] (defwidget dock_icon [pinned_app]
(eventbox (eventbox
:class "dock_icon ${pinned_app.alias}" :class "dock_icon ${pinned_app.alias}"
@ -27,6 +12,31 @@
) )
) )
(defwidget dock_widg []
(box
:class "dock_widg"
:halign "fill"
:height 50
:width 200
:active true
;These icons are for testing, not fully implemented
(dock_icon
:pinned_app "${apps}"
)
(dock_icon
:pinned_app "${firefox}"
)
(dock_icon
:pinned_app "${files}"
)
(dock_icon
:pinned_app "${terminal}"
)
)
)
;These vars are for testing ;These vars are for testing
(defvar (defvar
firefox firefox

View File

@ -1,2 +1,10 @@
(defwidget panel_widg (defwidget panel_widg []
(centerbox
:class "panel_widg"
:halign "fill"
:height 50
:width 200
:active true
)
) )