Skip to content

Commit

Permalink
[#17393] fix: visibility status sheet blur effect
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsen-ghafouri committed Dec 21, 2023
1 parent 2d0af3d commit 6bb5a00
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@
[quo/action-drawer
[[{:icon :i/online
:no-icon-color? true
:blur? true
:state (when (= status-type constants/visibility-status-always-online) :selected)
:customization-color customization-color
:accessibility-label :online
:label (i18n/label :t/online)
:on-press #(change-visibility-status constants/visibility-status-always-online)}
{:icon :i/offline
:no-icon-color? true
:blur? true
:state (when (= status-type constants/visibility-status-inactive) :selected)
:accessibility-label :offline
:customization-color customization-color
Expand All @@ -30,6 +32,7 @@
:on-press #(change-visibility-status constants/visibility-status-inactive)}
{:icon :i/automatic
:no-icon-color? true
:blur? true
:state (when (= status-type constants/visibility-status-automatic) :selected)
:accessibility-label :automatic
:customization-color customization-color
Expand Down
4 changes: 3 additions & 1 deletion src/status_im2/contexts/profile/settings/header/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
:no-icon-color? true
:icon-name (:icon (header.utils/visibility-status-type-data status))
:on-press #(rf/dispatch [:show-bottom-sheet
{:content (fn [] [visibility-sheet/view
{:shell? true
:theme :dark
:content (fn [] [visibility-sheet/view
{:customization-color customization-color
:status-type (:status-type
status)}])}])}
Expand Down

0 comments on commit 6bb5a00

Please sign in to comment.