@@ -12,20 +12,20 @@ void util::to_json(dj::Json& out, ui::LoadingScreenStyle const& loading_screen_s
12
12
progress_bar[" n_width" ] = loading_screen_style.progress_bar .n_width ;
13
13
progress_bar[" height" ] = loading_screen_style.progress_bar .height ;
14
14
progress_bar[" bottom_offset" ] = loading_screen_style.progress_bar .bottom_offset ;
15
- progress_bar[" outline_width " ] = loading_screen_style.progress_bar .outline_width ;
15
+ progress_bar[" padding " ] = loading_screen_style.progress_bar .padding ;
16
16
}
17
17
18
18
void util::from_json (dj::Json const & json, ui::LoadingScreenStyle& out) {
19
19
using bave::from_json;
20
20
from_json (json[" background_tint" ], out.background_tint );
21
21
auto const & spinner = json[" spinner" ];
22
22
from_json (spinner[" size" ], out.spinner .size );
23
- out.spinner .spin_rate .value = spinner[" spin_rate" ].as <float >();
23
+ out.spinner .spin_rate .value = spinner[" spin_rate" ].as <float >(out. spinner . spin_rate . value );
24
24
auto const & progress_bar = json[" progress_bar" ];
25
- out.progress_bar .n_width = progress_bar[" n_width" ].as <float >();
26
- out.progress_bar .height = progress_bar[" height" ].as <float >();
27
- out.progress_bar .bottom_offset = progress_bar[" bottom_offset" ].as <float >();
28
- out.progress_bar .outline_width = progress_bar[" outline_width " ].as <float >();
25
+ out.progress_bar .n_width = progress_bar[" n_width" ].as <float >(out. progress_bar . n_width );
26
+ out.progress_bar .height = progress_bar[" height" ].as <float >(out. progress_bar . height );
27
+ out.progress_bar .bottom_offset = progress_bar[" bottom_offset" ].as <float >(out. progress_bar . bottom_offset );
28
+ out.progress_bar .padding = progress_bar[" padding " ].as <float >(out. progress_bar . padding );
29
29
}
30
30
31
31
void util::to_json (dj::Json& out, ui::ButtonStyle::Tint const & button_tint) {
@@ -60,15 +60,15 @@ void util::from_json(dj::Json const& json, ui::ButtonStyle& out) {
60
60
void util::to_json (dj::Json& out, ui::ProgressBarStyle const & progress_bar_style) {
61
61
to_json (out[" background" ], progress_bar_style.background );
62
62
to_json (out[" fill" ], progress_bar_style.fill );
63
- to_json ( out[" outline " ], progress_bar_style.outline ) ;
64
- out[" outline_width " ] = progress_bar_style.outline_width ;
63
+ out[" corner_ratio " ] = progress_bar_style.corner_ratio ;
64
+ out[" padding " ] = progress_bar_style.padding ;
65
65
}
66
66
67
67
void util::from_json (dj::Json const & json, ui::ProgressBarStyle& out) {
68
68
from_json (json[" background" ], out.background );
69
69
from_json (json[" fill" ], out.fill );
70
- from_json ( json[" outline " ], out.outline );
71
- out.outline_width = json[" outline_width " ].as <float >();
70
+ out. corner_ratio = json[" corner_ratio " ]. as < float >( out.corner_ratio );
71
+ out.padding = json[" padding " ].as <float >(out. padding );
72
72
}
73
73
74
74
auto util::create_font_atlas_task (std::shared_ptr<bave::Font> font, std::vector<bave::TextHeight> heights) -> std::function<void()> {
0 commit comments