Liking cljdoc? Tell your friends :D
Clojure only.

seesaw.style

Functions for styling apps. Prefer (seesaw.core/stylesheet) and friends.

Functions for styling apps. Prefer (seesaw.core/stylesheet) and friends.
raw docstring

apply-stylesheetclj

(apply-stylesheet root stylesheet)

ALPHA - EXPERIMENTAL AND GUARANTEED TO CHANGE

Apply a stylesheet to a widget hierarchy. A stylesheet is simple a map where the keys are selectors and the values are maps from widget properties to values. For example,

(apply-stylesheet frame { [:#foo] { :text "hi" } [:.important] { :background :red } })

Applying a stylesheet is a one-time operation. It does not set up any kind of monitoring. Thus, if you make a change to a widget that would affect the rules that apply to it (say, by changing its :class) you'll need to reapply the stylesheet.

See: (seesaw.core/config!) (seesaw.core/select)

ALPHA - EXPERIMENTAL AND GUARANTEED TO CHANGE

Apply a stylesheet to a widget hierarchy. A stylesheet is simple a map where
the keys are selectors and the values are maps from widget properties to
values. For example,

  (apply-stylesheet frame {
    [:#foo]       { :text "hi" }
    [:.important] { :background :red } })

Applying a stylesheet is a one-time operation. It does not set up any
kind of monitoring. Thus, if you make a change to a widget that would
affect the rules that apply to it (say, by changing its :class) you'll
need to reapply the stylesheet.

See:
  (seesaw.core/config!)
  (seesaw.core/select)
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close