label text padding
This commit is contained in:
@@ -178,12 +178,14 @@
|
|||||||
(label text (style :label font (color 0.6 1.0 1.0 1.0)) :set-wrap true :set-alignment Align/bottomLeft
|
(label text (style :label font (color 0.6 1.0 1.0 1.0)) :set-wrap true :set-alignment Align/bottomLeft
|
||||||
:set-font-scale (* utils/ui-scale 0.25)
|
:set-font-scale (* utils/ui-scale 0.25)
|
||||||
:set-width label-width)
|
:set-width label-width)
|
||||||
|
|
||||||
:index i
|
:index i
|
||||||
:width label-width))
|
:width label-width))
|
||||||
(map (fn [l] (assoc (table [[ l :width label-width]])
|
(map (fn [l] (assoc
|
||||||
:label l
|
(table [[l :width label-width
|
||||||
:index (:index l))))))]
|
:pad-bottom (* utils/ui-scale 12)
|
||||||
|
:pad-top (* utils/ui-scale 12)]])
|
||||||
|
:label l
|
||||||
|
:index (:index l))))))]
|
||||||
(-> entities
|
(-> entities
|
||||||
|
|
||||||
(assoc-in [:state :choices] choices)
|
(assoc-in [:state :choices] choices)
|
||||||
@@ -191,7 +193,7 @@
|
|||||||
(assoc-in [:state :labels] labels)
|
(assoc-in [:state :labels] labels)
|
||||||
(assoc-in [:state :table]
|
(assoc-in [:state :table]
|
||||||
(doto (-> labels
|
(doto (-> labels
|
||||||
(vertical :align Align/bottomLeft :pad (* utils/ui-scale 20) :space (* utils/ui-scale 24))
|
(vertical :align Align/bottomLeft :pad (* utils/ui-scale 20))
|
||||||
|
|
||||||
(#(utils/add-actor-to-stage screen %))
|
(#(utils/add-actor-to-stage screen %))
|
||||||
(assoc :x 0 :y 0 :width 1240)
|
(assoc :x 0 :y 0 :width 1240)
|
||||||
|
|||||||
Reference in New Issue
Block a user