Skip to content

Commit

Permalink
ui.tools.theme: move the tools specific theme stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjbq7 committed Nov 15, 2024
1 parent c602273 commit 909c707
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 0 additions & 2 deletions basis/ui/theme/switching/switching.factor
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,3 @@ t default-theme? set-global
: wombat-mode ( -- ) wombat-theme switch-theme ;

: base16-mode ( -- ) base16-theme switch-theme ;

{ "ui.theme.switching" "ui.tools" } "ui.theme.switching.tools" require-when
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ listener memoize namespaces prettyprint.private
prettyprint.stylesheet sequences ui.gadgets.panes.private
ui.theme ui.theme.switching ui.tools.listener vectors
vocabs.loader vocabs.prettyprint words ;
IN: ui.theme.switching.tools
IN: ui.tools.theme

: set-tools-font-size ( size -- )
\ default-font-size set-global
Expand Down
4 changes: 3 additions & 1 deletion basis/ui/tools/tools.factor
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ USING: io.pathnames kernel literals memory namespaces sequences
system tools.test ui ui.backend ui.commands ui.gadgets.private
ui.gestures ui.tools.browser ui.tools.button-list
ui.tools.common ui.tools.error-list ui.tools.listener
vocabs.refresh ;
vocabs.loader vocabs.refresh ;
IN: ui.tools

\ refresh-all H{ { +nullary+ t } { +listener+ t } } define-command
Expand Down Expand Up @@ -50,6 +50,8 @@ tool "fonts" f {
{ T{ key-down f ${ os macos? M+ C+ ? } "-" } com-font-size-minus }
} define-command-map

{ "ui.theme.switching" "ui.tools" } "ui.tools.theme" require-when

: ui-tools-main ( -- )
f ui-stop-after-last-window? set-global
"resource:" absolute-path current-directory set-global
Expand Down

0 comments on commit 909c707

Please sign in to comment.