Using ui.gadgets.colors everywhere
parent
ba4a6b780a
commit
d0b4f7d9a3
|
@ -1,7 +1,7 @@
|
||||||
! Copyright (C) 2006, 2009 Slava Pestov, 2015 Nicolas Pénet.
|
! Copyright (C) 2006, 2009 Slava Pestov, 2015 Nicolas Pénet.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: accessors colors.constants fonts kernel ui.gadgets
|
USING: accessors colors.constants fonts kernel ui.gadgets
|
||||||
ui.gadgets.borders ui.gadgets.corners ui.gadgets.frames
|
ui.gadgets.borders ui.gadgets.colors ui.gadgets.corners ui.gadgets.frames
|
||||||
ui.gadgets.grids ui.gadgets.labels ui.gadgets.lines
|
ui.gadgets.grids ui.gadgets.labels ui.gadgets.lines
|
||||||
ui.gadgets.tracks ui.gadgets.packs ui.tools.common
|
ui.gadgets.tracks ui.gadgets.packs ui.tools.common
|
||||||
ui.pens.gradient ui.pens.image ui.pens.solid ui.render ;
|
ui.pens.gradient ui.pens.image ui.pens.solid ui.render ;
|
||||||
|
@ -13,8 +13,6 @@ TUPLE: labeled-gadget < track content color ;
|
||||||
|
|
||||||
M: labeled-gadget focusable-child* content>> ;
|
M: labeled-gadget focusable-child* content>> ;
|
||||||
|
|
||||||
CONSTANT: title-bar-gradient { COLOR: white COLOR: grey90 }
|
|
||||||
|
|
||||||
: add-title-bar ( title track -- track )
|
: add-title-bar ( title track -- track )
|
||||||
swap >label
|
swap >label
|
||||||
[ t >>bold? ] change-font
|
[ t >>bold? ] change-font
|
||||||
|
|
|
@ -1,14 +1,8 @@
|
||||||
! Copyright (C) 2015 Nicolas Pénet.
|
! Copyright (C) 2015 Nicolas Pénet.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: accessors colors.constants kernel ui.pens.solid ;
|
USING: accessors colors.constants kernel ui.gadgets.colors ui.pens.solid ;
|
||||||
IN: ui.gadgets.lines
|
IN: ui.gadgets.lines
|
||||||
|
|
||||||
<PRIVATE
|
|
||||||
|
|
||||||
CONSTANT: line-color COLOR: grey75
|
|
||||||
|
|
||||||
PRIVATE>
|
|
||||||
|
|
||||||
: with-lines ( track -- track )
|
: with-lines ( track -- track )
|
||||||
dup orientation>> >>gap
|
dup orientation>> >>gap
|
||||||
line-color <solid> >>interior ;
|
line-color <solid> >>interior ;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
USING: accessors colors.constants kernel locals math.rectangles
|
USING: accessors colors.constants kernel locals math.rectangles
|
||||||
math.vectors namespaces opengl sequences sorting ui.commands
|
math.vectors namespaces opengl sequences sorting ui.commands
|
||||||
ui.gadgets ui.gadgets.borders ui.gadgets.buttons ui.gadgets.corners
|
ui.gadgets ui.gadgets.borders ui.gadgets.buttons ui.gadgets.corners
|
||||||
ui.gadgets.frames ui.gadgets.glass ui.gadgets.packs
|
ui.gadgets.colors ui.gadgets.frames ui.gadgets.glass ui.gadgets.packs
|
||||||
ui.gadgets.worlds ui.tools.common ui.gestures ui.operations ui.pens
|
ui.gadgets.worlds ui.tools.common ui.gestures ui.operations ui.pens
|
||||||
ui.pens.solid ui.render ;
|
ui.pens.solid ui.render ;
|
||||||
IN: ui.gadgets.menus
|
IN: ui.gadgets.menus
|
||||||
|
@ -22,9 +22,6 @@ M:: object <menu-item> ( target hook command -- button )
|
||||||
|
|
||||||
<PRIVATE
|
<PRIVATE
|
||||||
|
|
||||||
CONSTANT: menu-background-color COLOR: grey95
|
|
||||||
CONSTANT: menu-border-color COLOR: grey75
|
|
||||||
|
|
||||||
TUPLE: separator-pen color ;
|
TUPLE: separator-pen color ;
|
||||||
|
|
||||||
C: <separator-pen> separator-pen
|
C: <separator-pen> separator-pen
|
||||||
|
@ -52,7 +49,7 @@ M: ---- <menu-item>
|
||||||
{ 0 3 } >>gap
|
{ 0 3 } >>gap
|
||||||
margins
|
margins
|
||||||
menu-border-color <solid> >>boundary
|
menu-border-color <solid> >>boundary
|
||||||
menu-background-color <solid> >>interior ;
|
menu-background <solid> >>interior ;
|
||||||
|
|
||||||
: <commands-menu> ( target hook commands -- menu )
|
: <commands-menu> ( target hook commands -- menu )
|
||||||
[ <menu-item> ] 2with map <menu> ;
|
[ <menu-item> ] 2with map <menu> ;
|
||||||
|
|
|
@ -2,13 +2,10 @@
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: accessors calendar colors.constants fonts kernel models
|
USING: accessors calendar colors.constants fonts kernel models
|
||||||
models.arrow models.delay sequences summary ui
|
models.arrow models.delay sequences summary ui
|
||||||
ui.gadgets.borders ui.gadgets.labels ui.gadgets.tracks
|
ui.gadgets.borders ui.gadgets.colors ui.gadgets.labels ui.gadgets.tracks
|
||||||
ui.gadgets.worlds ui.pens.solid ui.private ;
|
ui.gadgets.worlds ui.pens.solid ui.private ;
|
||||||
IN: ui.gadgets.status-bar
|
IN: ui.gadgets.status-bar
|
||||||
|
|
||||||
CONSTANT: status-bar-background COLOR: FactorDarkSlateBlue
|
|
||||||
CONSTANT: status-bar-foreground COLOR: white
|
|
||||||
|
|
||||||
: status-bar-font ( -- font )
|
: status-bar-font ( -- font )
|
||||||
sans-serif-font clone
|
sans-serif-font clone
|
||||||
status-bar-background >>background
|
status-bar-background >>background
|
||||||
|
|
|
@ -1,13 +1,11 @@
|
||||||
! Copyright (C) 2015 Nicolas Pénet.
|
! Copyright (C) 2015 Nicolas Pénet.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: accessors assocs classes colors.constants fry kernel
|
USING: accessors assocs classes colors.constants fry kernel
|
||||||
ui.commands ui.gadgets ui.gadgets.borders ui.gadgets.buttons
|
ui.commands ui.gadgets ui.gadgets.borders ui.gadgets.buttons ui.gadgets.colors
|
||||||
ui.gadgets.buttons.private ui.gadgets.packs ui.gadgets.tracks
|
ui.gadgets.buttons.private ui.gadgets.packs ui.gadgets.tracks
|
||||||
ui.pens.solid ;
|
ui.pens.solid ;
|
||||||
IN: ui.gadgets.toolbar
|
IN: ui.gadgets.toolbar
|
||||||
|
|
||||||
CONSTANT: toolbar-background COLOR: grey95
|
|
||||||
|
|
||||||
: <toolbar> ( target -- toolbar )
|
: <toolbar> ( target -- toolbar )
|
||||||
<shelf>
|
<shelf>
|
||||||
1 >>fill
|
1 >>fill
|
||||||
|
@ -16,8 +14,11 @@ CONSTANT: toolbar-background COLOR: grey95
|
||||||
[ [ "toolbar" ] dip class-of get-command-at commands>> ]
|
[ [ "toolbar" ] dip class-of get-command-at commands>> ]
|
||||||
[ '[ [ _ ] 2dip <command-button> add-gadget ] ]
|
[ '[ [ _ ] 2dip <command-button> add-gadget ] ]
|
||||||
bi assoc-each ;
|
bi assoc-each ;
|
||||||
|
|
||||||
|
: format-toolbar ( toolbar -- toolbar )
|
||||||
|
{ 3 3 } <border>
|
||||||
|
toolbar-background <solid> >>interior
|
||||||
|
align-left ;
|
||||||
|
|
||||||
: add-toolbar ( track -- track )
|
: add-toolbar ( track -- track )
|
||||||
dup <toolbar> { 3 3 } <border>
|
dup <toolbar> format-toolbar f track-add ;
|
||||||
toolbar-background <solid> >>interior
|
|
||||||
align-left f track-add ;
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ USING: accessors arrays classes colors colors.constants combinators
|
||||||
combinators.short-circuit compiler.units debugger fry help
|
combinators.short-circuit compiler.units debugger fry help
|
||||||
help.apropos help.crossref help.home help.stylesheet help.topics
|
help.apropos help.crossref help.home help.stylesheet help.topics
|
||||||
kernel models sequences sets ui ui.commands ui.gadgets
|
kernel models sequences sets ui ui.commands ui.gadgets
|
||||||
ui.gadgets.borders ui.gadgets.buttons ui.gadgets.editors
|
ui.gadgets.borders ui.gadgets.buttons ui.gadgets.colors ui.gadgets.editors
|
||||||
ui.gadgets.glass ui.gadgets.labels ui.gadgets.lines ui.gadgets.panes
|
ui.gadgets.glass ui.gadgets.labels ui.gadgets.lines ui.gadgets.panes
|
||||||
ui.gadgets.scrollers ui.gadgets.status-bar ui.gadgets.tracks ui.gadgets.toolbar
|
ui.gadgets.scrollers ui.gadgets.status-bar ui.gadgets.tracks ui.gadgets.toolbar
|
||||||
ui.gadgets.viewports ui.gadgets.worlds ui.gestures
|
ui.gadgets.viewports ui.gadgets.worlds ui.gestures
|
||||||
|
@ -37,9 +37,6 @@ M: browser-gadget set-history-value
|
||||||
: <help-header> ( browser-gadget -- gadget )
|
: <help-header> ( browser-gadget -- gadget )
|
||||||
model>> [ '[ _ $title ] try ] <pane-control> ;
|
model>> [ '[ _ $title ] try ] <pane-control> ;
|
||||||
|
|
||||||
CONSTANT: help-header-background
|
|
||||||
T{ rgba { red 0.9568 } { green 0.9450 } { blue 0.8509 } { alpha 1.0 } } inline
|
|
||||||
|
|
||||||
: add-help-header ( track -- track )
|
: add-help-header ( track -- track )
|
||||||
dup <help-header> { 3 3 } <border>
|
dup <help-header> { 3 3 } <border>
|
||||||
help-header-background <solid> >>interior
|
help-header-background <solid> >>interior
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: accessors arrays assocs colors.constants
|
USING: accessors arrays assocs colors.constants
|
||||||
definitions.icons fry help help.topics kernel math.rectangles
|
definitions.icons fry help help.topics kernel math.rectangles
|
||||||
models.arrow namespaces sequences tools.crossref ui.gadgets
|
models.arrow namespaces sequences tools.crossref ui.gadgets ui.gadgets.colors
|
||||||
ui.gadgets.glass ui.gadgets.labeled ui.gadgets.search-tables
|
ui.gadgets.glass ui.gadgets.labeled ui.gadgets.search-tables
|
||||||
ui.gadgets.tables ui.gadgets.wrappers ui.gestures ui.images
|
ui.gadgets.tables ui.gadgets.wrappers ui.gestures ui.images
|
||||||
ui.operations ui.pens.solid ;
|
ui.operations ui.pens.solid ;
|
||||||
|
@ -33,7 +33,7 @@ TUPLE: links-popup < wrapper ;
|
||||||
|
|
||||||
: <links-popup> ( model quot title -- gadget )
|
: <links-popup> ( model quot title -- gadget )
|
||||||
[ <links-table> COLOR: white <solid> >>interior ] dip
|
[ <links-table> COLOR: white <solid> >>interior ] dip
|
||||||
COLOR: yellow <labeled-gadget> links-popup new-wrapper ;
|
popup-color <labeled-gadget> links-popup new-wrapper ;
|
||||||
|
|
||||||
links-popup H{
|
links-popup H{
|
||||||
{ T{ key-down f f "ESC" } [ hide-glass ] }
|
{ T{ key-down f f "ESC" } [ hide-glass ] }
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
USING: accessors colors inspector namespaces kernel models fry
|
USING: accessors colors inspector namespaces kernel models fry
|
||||||
colors.constants models.arrow prettyprint sequences mirrors assocs
|
colors.constants models.arrow prettyprint sequences mirrors assocs
|
||||||
classes io io.styles arrays hashtables math.order sorting refs fonts
|
classes io io.styles arrays hashtables math.order sorting refs fonts
|
||||||
ui.tools.browser ui.commands ui.operations ui.gadgets ui.gadgets.panes
|
ui.tools.browser ui.commands ui.operations ui.gadgets ui.gadgets.colors ui.gadgets.panes
|
||||||
ui.gadgets.scrollers ui.gadgets.slots ui.gadgets.tracks ui.gestures
|
ui.gadgets.scrollers ui.gadgets.slots ui.gadgets.tracks ui.gestures
|
||||||
ui.gadgets.buttons ui.gadgets.lines ui.gadgets.tables
|
ui.gadgets.buttons ui.gadgets.lines ui.gadgets.tables
|
||||||
ui.gadgets.toolbar ui.gadgets.status-bar
|
ui.gadgets.toolbar ui.gadgets.status-bar
|
||||||
|
@ -81,13 +81,6 @@ M: hashtable make-slot-descriptions
|
||||||
40 >>min-cols
|
40 >>min-cols
|
||||||
40 >>max-cols ;
|
40 >>max-cols ;
|
||||||
|
|
||||||
<PRIVATE
|
|
||||||
|
|
||||||
CONSTANT: object-color COLOR: aquamarine2
|
|
||||||
CONSTANT: contents-color COLOR: orchid2
|
|
||||||
|
|
||||||
PRIVATE>
|
|
||||||
|
|
||||||
: <inspector-gadget> ( model -- gadget )
|
: <inspector-gadget> ( model -- gadget )
|
||||||
vertical inspector-gadget new-track with-lines
|
vertical inspector-gadget new-track with-lines
|
||||||
add-toolbar
|
add-toolbar
|
||||||
|
|
|
@ -7,7 +7,7 @@ documents.elements fry hashtables help help.markup help.tips io
|
||||||
io.styles kernel lexer listener locals make math models
|
io.styles kernel lexer listener locals make math models
|
||||||
models.arrow models.delay namespaces parser prettyprint
|
models.arrow models.delay namespaces parser prettyprint
|
||||||
quotations sequences source-files.errors strings system threads
|
quotations sequences source-files.errors strings system threads
|
||||||
tools.errors.model ui ui.commands ui.gadgets ui.gadgets.buttons
|
tools.errors.model ui ui.commands ui.gadgets ui.gadgets.buttons ui.gadgets.colors
|
||||||
ui.gadgets.editors ui.gadgets.glass ui.gadgets.labeled ui.gadgets.lines
|
ui.gadgets.editors ui.gadgets.glass ui.gadgets.labeled ui.gadgets.lines
|
||||||
ui.gadgets.panes ui.gadgets.scrollers ui.gadgets.status-bar
|
ui.gadgets.panes ui.gadgets.scrollers ui.gadgets.status-bar
|
||||||
ui.gadgets.tracks ui.gadgets.toolbar
|
ui.gadgets.tracks ui.gadgets.toolbar
|
||||||
|
@ -212,7 +212,7 @@ TUPLE: listener-gadget < tool error-summary output scroller input ;
|
||||||
|
|
||||||
: <error-summary> ( -- gadget )
|
: <error-summary> ( -- gadget )
|
||||||
error-list-model get [ drop error-summary. ] <pane-control>
|
error-list-model get [ drop error-summary. ] <pane-control>
|
||||||
COLOR: light-yellow <solid> >>interior ;
|
error-summary-background <solid> >>interior ;
|
||||||
|
|
||||||
: init-error-summary ( listener -- listener )
|
: init-error-summary ( listener -- listener )
|
||||||
<error-summary> >>error-summary
|
<error-summary> >>error-summary
|
||||||
|
@ -333,12 +333,6 @@ M: object accept-completion-hook 2drop ;
|
||||||
[ history>> history-add drop ] [ control-value ] [ select-all ] tri
|
[ history>> history-add drop ] [ control-value ] [ select-all ] tri
|
||||||
parse-lines-interactive ;
|
parse-lines-interactive ;
|
||||||
|
|
||||||
<PRIVATE
|
|
||||||
|
|
||||||
CONSTANT: debugger-color COLOR: chocolate1
|
|
||||||
|
|
||||||
PRIVATE>
|
|
||||||
|
|
||||||
: <debugger-popup> ( error continuation -- popup )
|
: <debugger-popup> ( error continuation -- popup )
|
||||||
over compute-restarts [ hide-glass ] <debugger>
|
over compute-restarts [ hide-glass ] <debugger>
|
||||||
"Error" debugger-color <framed-labeled-gadget> ;
|
"Error" debugger-color <framed-labeled-gadget> ;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: accessors arrays colors.constants continuations fonts fry inspector
|
USING: accessors arrays colors.constants continuations fonts fry inspector
|
||||||
kernel models models.arrow prettyprint sequences ui.commands
|
kernel models models.arrow prettyprint sequences ui.commands
|
||||||
ui.gadgets ui.gadgets.borders ui.gadgets.buttons
|
ui.gadgets ui.gadgets.borders ui.gadgets.buttons ui.gadgets.colors
|
||||||
ui.gadgets.labeled ui.gadgets.lines ui.gadgets.panes ui.gadgets.scrollers
|
ui.gadgets.labeled ui.gadgets.lines ui.gadgets.panes ui.gadgets.scrollers
|
||||||
ui.gadgets.status-bar ui.gadgets.tables ui.gadgets.toolbar ui.gadgets.tracks
|
ui.gadgets.status-bar ui.gadgets.tables ui.gadgets.toolbar ui.gadgets.tracks
|
||||||
ui.gestures ui.tools.common ;
|
ui.gestures ui.tools.common ;
|
||||||
|
@ -21,10 +21,6 @@ M: stack-entry-renderer row-columns drop string>> 1array ;
|
||||||
|
|
||||||
M: stack-entry-renderer row-value drop object>> ;
|
M: stack-entry-renderer row-value drop object>> ;
|
||||||
|
|
||||||
CONSTANT: data-stack-color COLOR: DodgerBlue
|
|
||||||
CONSTANT: retain-stack-color COLOR: HotPink
|
|
||||||
CONSTANT: call-stack-color COLOR: GreenYellow
|
|
||||||
|
|
||||||
: <stack-table> ( model -- table )
|
: <stack-table> ( model -- table )
|
||||||
[ [ <stack-entry> ] map ] <arrow> stack-entry-renderer <table>
|
[ [ <stack-entry> ] map ] <arrow> stack-entry-renderer <table>
|
||||||
10 >>min-rows
|
10 >>min-rows
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
! Copyright (C) 2006, 2009 Slava Pestov.
|
! Copyright (C) 2006, 2009 Slava Pestov.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: accessors colors kernel concurrency.messaging colors.constants inspector
|
USING: accessors colors kernel concurrency.messaging colors.constants inspector
|
||||||
ui.tools.listener ui.tools.traceback ui.gadgets.buttons ui.gadgets.lines
|
ui.tools.listener ui.tools.traceback ui.gadgets.buttons ui.gadgets.colors ui.gadgets.lines
|
||||||
ui.gadgets.status-bar ui.gadgets.toolbar ui.gadgets.tracks ui.commands ui.gadgets
|
ui.gadgets.status-bar ui.gadgets.toolbar ui.gadgets.tracks ui.commands ui.gadgets
|
||||||
models models.arrow ui.tools.browser ui.tools.common ui.gestures
|
models models.arrow ui.tools.browser ui.tools.common ui.gestures
|
||||||
ui.gadgets.labels ui.pens.solid ui threads namespaces make tools.walker assocs
|
ui.gadgets.labels ui.pens.solid ui threads namespaces make tools.walker assocs
|
||||||
|
@ -54,13 +54,10 @@ M: walker-gadget focusable-child*
|
||||||
|
|
||||||
: <thread-status> ( model thread -- gadget )
|
: <thread-status> ( model thread -- gadget )
|
||||||
'[ _ walker-state-string ] <arrow> <label-control> ;
|
'[ _ walker-state-string ] <arrow> <label-control> ;
|
||||||
|
|
||||||
CONSTANT: thread-status-color
|
|
||||||
T{ rgba { red 0.9295 } { green 0.9569 } { blue 0.8510 } { alpha 1.0 } } inline
|
|
||||||
|
|
||||||
: add-thread-status ( track -- track )
|
: add-thread-status ( track -- track )
|
||||||
dup status>> self <thread-status> margins
|
dup status>> self <thread-status> margins
|
||||||
thread-status-color <solid> >>interior
|
thread-status-background <solid> >>interior
|
||||||
f track-add ;
|
f track-add ;
|
||||||
|
|
||||||
: add-traceback ( track -- track )
|
: add-traceback ( track -- track )
|
||||||
|
|
Loading…
Reference in New Issue