Skip to content

Commit

Permalink
reconnect with and without labels in bars
Browse files Browse the repository at this point in the history
  • Loading branch information
gmp26 committed May 27, 2017
1 parent 7e31075 commit 1660a3d
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 6 deletions.
22 changes: 21 additions & 1 deletion src/unspun/screens/introduction.cljs
Expand Up @@ -59,7 +59,27 @@
(view {:style {:flex 0.18
:backgroundColor (:dark-primary palette)
}}
(touchable-highlight {:style {:flex 1
(touchable-highlight {:style {:flex 1
:margin 20
:height 50
:borderColor (:accent (get-palette (rum/react palette-index)))
:borderWidth 2
:borderRadius 30
:shadowColor "#000"
:shadowOffset {:width shadow-size :height shadow-size}
:shadowRadius shadow-size
:shadowOpacity 0.5
:alignItems "center"
:justifyContent "center"
}
:onPress #(jumpToDrawer "scenarios" "stories")}

(text {:style {:color (:text-icons (get-palette (rum/react palette-index)))
:textAlign "center"
:fontWeight "bold"}}
"Start"))

#_(touchable-highlight {:style {:flex 1
:margin 20
:backgroundColor (:accent (get-palette (rum/react palette-index)))
:borderRadius 30
Expand Down
8 changes: 5 additions & 3 deletions src/unspun/screens/logo.cljs
Expand Up @@ -9,7 +9,7 @@
;(def logo-img (js/require "./assets/images/logo.png"))
(def brand (js/require "./assets/images/brand.png"))

(def shadow-size 2)
(def shadow-size 1)

(defn alert [title]
(.alert rn/alert title))
Expand Down Expand Up @@ -95,7 +95,9 @@
:marginLeft 20
:marginRight 20
:height 50
:backgroundColor (:accent (get-palette (rum/react palette-index)))
;:backgroundColor (:accent (get-palette (rum/react palette-index)))
:borderColor (:accent (get-palette (rum/react palette-index)))
:borderWidth 2
:borderRadius 30
:shadowColor "#000"
:shadowOffset {:width shadow-size :height shadow-size}
Expand All @@ -106,7 +108,7 @@
}
:onPress #(jumpToDrawer "scenarios" "stories")}

(text {:style {:color (:light-accent (get-palette (rum/react palette-index)))
(text {:style {:color (:text-icons (get-palette (rum/react palette-index)))
:textAlign "center"
:fontWeight "bold"}}
"Start")))))
Expand Down
4 changes: 2 additions & 2 deletions src/unspun/screens/rum_bars.cljs
Expand Up @@ -258,7 +258,7 @@
:fontSize (/ tffsz 0.85)
:textAlign "right"
:paddingRight 10}}
(:without scenar)))
(:without-label scenar)))
(view {:key 2
:style {:flex 0.2}}
(labelled-vertical-bar palette br (rum/react (:scale state))))
Expand All @@ -274,7 +274,7 @@
:fontSize (/ tffsz 0.85)
:padding 10
:textAlign "left"}}
(:with scenar)))))
(:with-label scenar)))))

(view {:key 4
:style {:position "absolute"
Expand Down

0 comments on commit 1660a3d

Please sign in to comment.