Skip to content
Snippets Groups Projects
Commit 1898c99a authored by François  LAURENT's avatar François LAURENT
Browse files

fix: bigger notifications

parent d0e15461
No related branches found
No related tags found
1 merge request!2UX improvements
module MuscleWidgets module MuscleWidgets
using Base: has_nondefault_cmd_flags
using NyxWidgets.Players, NyxWidgets.Muscles, NyxWidgets.AnimatedLayers using NyxWidgets.Players, NyxWidgets.Muscles, NyxWidgets.AnimatedLayers
import NyxWidgets.Base: lowerdom, dom_id, dom_id!, Div import NyxWidgets.Base: lowerdom, dom_id, dom_id!, Div
using NyxPlots using NyxPlots
......
...@@ -37,6 +37,7 @@ const bonito_app = NamedApp(:inherit, Backbone.app) ...@@ -37,6 +37,7 @@ const bonito_app = NamedApp(:inherit, Backbone.app)
#@in delete_sequence_click = false #@in delete_sequence_click = false
@in colormap = default_colormap @in colormap = default_colormap
@out first_time_in_editmode = true # and in the heatmap view
@in editmode = false @in editmode = false
@out editmode_disable = true @out editmode_disable = true
@in setvalue = 1.0 @in setvalue = 1.0
...@@ -44,6 +45,8 @@ const bonito_app = NamedApp(:inherit, Backbone.app) ...@@ -44,6 +45,8 @@ const bonito_app = NamedApp(:inherit, Backbone.app)
@in time_interval = 0.05 @in time_interval = 0.05
@in start_time = 0.0 @in start_time = 0.0
@out heatmap_view = false
@out area_selected = false @out area_selected = false
@out new_clipboard_item = false @out new_clipboard_item = false
...@@ -80,6 +83,12 @@ const bonito_app = NamedApp(:inherit, Backbone.app) ...@@ -80,6 +83,12 @@ const bonito_app = NamedApp(:inherit, Backbone.app)
area_selected[!] = false area_selected[!] = false
area_selected = true area_selected = true
end end
on(model.animation.switchlayer) do layers
if !isnothing(layers)
current = layers[1]
heatmap_view = 1 < current
end
end
end end
@onchange start_time, time_interval, series_length begin @onchange start_time, time_interval, series_length begin
...@@ -204,6 +213,20 @@ const bonito_app = NamedApp(:inherit, Backbone.app) ...@@ -204,6 +213,20 @@ const bonito_app = NamedApp(:inherit, Backbone.app)
model = getmodel(back_session_id) model = getmodel(back_session_id)
model.editmode[] = editmode model.editmode[] = editmode
editmode_disable = !editmode editmode_disable = !editmode
if editmode && first_time_in_editmode && heatmap_view
first_time_in_editmode = false
end
end
@onchange heatmap_view begin
if heatmap_view && editmode && first_time_in_editmode
first_time_in_editmode = false
end
end
@onchange first_time_in_editmode begin
@assert !first_time_in_editmode
@notify "Toggle the \"edit mode\" off to browse the sequence with the heatmap" :info
end end
@onchange setvalue begin @onchange setvalue begin
......
...@@ -12,3 +12,6 @@ ...@@ -12,3 +12,6 @@
margin-left: 1rem; margin-left: 1rem;
} }
.q-notification__message {
font-size: 120%;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment