Skip to content

Commit

Permalink
center title-bar
Browse files Browse the repository at this point in the history
  • Loading branch information
sprocketc committed Nov 30, 2023
1 parent 6ba40ef commit b0518af
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/renderer/window/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@

(defn title-bar []
(let [title @(rf/subscribe [:document/title])]
[:div.title-bar title]))
[:div.title-bar
[:span title]
[:span {:style {:width "250px"}}]]))

(defn app-header []
(when-not @(rf/subscribe [:window/fullscreen?])
Expand All @@ -38,10 +40,9 @@
:height "14px"}}]]
[menubar/root]
[title-bar]
(let [theme-mode @(rf/subscribe [:theme/mode])]
[:div.level-2
{:class (when-not platform/electron? "mr-1.5")}
[comp/icon-button
(name theme-mode)
{:on-click #(rf/dispatch [:theme/cycle-mode])}]])
[:div.level-2
{:class (when-not platform/electron? "mr-1.5")}
[comp/icon-button
(name @(rf/subscribe [:theme/mode]))
{:on-click #(rf/dispatch [:theme/cycle-mode])}]]
(when platform/electron? [window-controls])]))

0 comments on commit b0518af

Please sign in to comment.