▾ modified common/frq/screens/chat.cljc +9 -1 Viewed
@@ -1161,9 +1161,17 @@ 1161 1161 ;; to have been showing both: the list folds away and the conversation 1162 1162 ;; takes the whole row. Its own wrapper, since it is only offered where 1163 1163 ;; there are two panes to choose between. 1164 + ;; 1165 + ;; One label, lit while the list is up. It used to drop to a bare "☰" 1166 + ;; with the list showing, which made the switch two different-looking 1167 + ;; controls in the same slot and left the reader guessing which state the 1168 + ;; one in front of them meant. The People and Overview switches beside it 1169 + ;; say it the other way — the label holds still and `:primary` says it is 1170 + ;; on — so this one says it that way too. 1164 1171 [:vbox {:key :fold} 1165 1172 (when (actions/wide?) 1166 - [:button {:label (if @cells/hide-chat-list? "☰ Chats" "☰") 1173 + [:button {:label "☰ Chats" 1174 + :kind (when-not @cells/hide-chat-list? :primary) 1167 1175 :on-click actions/toggle-chat-list!}])] 1168 1176 [:title {:label (or name "Chat")}] 1169 1177 ;; Same wrapper trick: only in a channel, and only when there is no call
@@ -1161,9 +1161,17 @@ 1161 ;; to have been showing both: the list folds away and the conversation 1161 ;; to have been showing both: the list folds away and the conversation 1162 ;; takes the whole row. Its own wrapper, since it is only offered where 1162 ;; takes the whole row. Its own wrapper, since it is only offered where 1163 ;; there are two panes to choose between. 1163 ;; there are two panes to choose between. 1164 + ;; 1165 + ;; One label, lit while the list is up. It used to drop to a bare "☰" 1166 + ;; with the list showing, which made the switch two different-looking 1167 + ;; controls in the same slot and left the reader guessing which state the 1168 + ;; one in front of them meant. The People and Overview switches beside it 1169 + ;; say it the other way — the label holds still and `:primary` says it is 1170 + ;; on — so this one says it that way too. 1164 [:vbox {:key :fold} 1171 [:vbox {:key :fold} 1165 (when (actions/wide?) 1172 (when (actions/wide?) 1166 - [:button {:label (if @cells/hide-chat-list? "☰ Chats" "☰") 1173 + [:button {:label "☰ Chats" 1174 + :kind (when-not @cells/hide-chat-list? :primary) 1167 :on-click actions/toggle-chat-list!}])] 1175 :on-click actions/toggle-chat-list!}])] 1168 [:title {:label (or name "Chat")}] 1176 [:title {:label (or name "Chat")}] 1169 ;; Same wrapper trick: only in a channel, and only when there is no call 1177 ;; Same wrapper trick: only in a channel, and only when there is no call