|
34 | 34 | [day8.re-frame-10x.material :as material]
|
35 | 35 | [day8.re-frame-10x.styles :as styles]
|
36 | 36 | [day8.re-frame-10x.tools.shadow-dom :as tools.shadow-dom]
|
37 |
| - [day8.re-frame-10x.popup :as popup]) |
| 37 | + [day8.re-frame-10x.popup :as popup] |
| 38 | + [day8.re-frame-10x.component :as rfc] |
| 39 | + [re-fine.theme :as theme] |
| 40 | + [day8.re-frame-10x.theme :as tenx.theme]) |
38 | 41 | (:require-macros [day8.re-frame-10x.components.re-com :refer [inline-resource]]))
|
39 | 42 |
|
40 | 43 | #_(defglobal container-styles
|
|
110 | 113 | :label title
|
111 | 114 | :on-click #(rf/dispatch [::settings.events/selected-tab panel-id])]]]))
|
112 | 115 |
|
113 |
| -(defclass tab-buttons-style |
| 116 | +(defclass panel-header-style |
114 | 117 | [ambiance]
|
115 | 118 | {:composes (styles/navigation-border-top ambiance)
|
116 | 119 | :padding-left styles/gs-19})
|
|
144 | 147 | [replay-button]
|
145 | 148 | ;; TODO: help smaller than what is currently to indicate Reply button is more important/relationship. e.g. just question mark, no button.
|
146 | 149 | [replay-help-button]]]))
|
| 150 | + |
| 151 | + |
| 152 | + |
| 153 | + |
| 154 | + |
| 155 | + |
| 156 | + |
| 157 | + |
| 158 | + |
| 159 | + |
| 160 | + |
| 161 | + |
| 162 | + |
| 163 | + |
| 164 | + |
| 165 | + |
| 166 | + |
| 167 | + |
| 168 | + |
| 169 | + |
| 170 | + (theme/clear-global) |
| 171 | + (theme/reg-global tenx.theme/base tenx.theme/light) |
| 172 | + |
| 173 | +(defn panel-header-tabs [{:keys [debug?]}] |
| 174 | + [rfc/horizontal-tabs |
| 175 | + {:theme [rfc/reset-theme! tenx.theme/gruvbox] |
| 176 | + #_#_:theme (fn [attr _ _] (update attr :style merge {:color "red"})) |
| 177 | + :tabs (cond-> [{:id :event :label "event"} |
| 178 | + {:id :fx :label "fx"} |
| 179 | + {:id :app-db :label "app-db"} |
| 180 | + {:id :subs :label "subs"} |
| 181 | + {:id :traces :label "traces"} |
| 182 | + {:id :timing :label "timing"}] |
| 183 | + debug? (conj {:id :debug :label "debug"})) |
| 184 | + :on-change #(rf/dispatch [::settings.events/selected-tab %])}]) |
| 185 | + |
| 186 | + |
| 187 | + |
| 188 | + |
| 189 | + |
| 190 | + |
| 191 | + |
| 192 | + |
| 193 | + |
| 194 | + |
| 195 | + |
| 196 | + |
| 197 | + |
| 198 | + |
| 199 | + |
| 200 | + |
| 201 | + |
| 202 | + |
| 203 | + |
| 204 | + |
| 205 | + |
| 206 | + |
| 207 | + |
| 208 | + |
| 209 | + |
| 210 | + |
| 211 | + |
| 212 | + |
| 213 | + |
147 | 214 |
|
148 | 215 | (defn panel-header
|
149 | 216 | [{:keys [debug?]}]
|
150 | 217 | (let [ambiance @(rf/subscribe [::settings.subs/ambiance])]
|
151 | 218 | [rc/h-box
|
152 |
| - :class (tab-buttons-style ambiance) |
| 219 | + :class (panel-header-style ambiance) |
153 | 220 | :justify :between
|
154 |
| - :children [[panel-tabs debug?] |
| 221 | + :children [[rc/h-box |
| 222 | + :align :end |
| 223 | + :height "31px" |
| 224 | + :children |
| 225 | + [[panel-header-tabs {:debug? debug?}]]] |
| 226 | + #_[panel-tabs debug?] |
155 | 227 | [replay-controls]]]))
|
156 | 228 |
|
157 | 229 | (defclass warning-style
|
|
0 commit comments