wgui: use dark mode
This commit is contained in:
@@ -22,8 +22,7 @@
|
||||
<rectangle padding="8" gap="8" round="100%" color="~bg_color_active" justify_content="center" align_items="center">
|
||||
<label size="18" translation="BAR.OPACITY" color="~text_color" />
|
||||
<Slider width="150" height="24" min_value="0" max_value="100" value="100" />
|
||||
<label size="18" translation="BAR.ADDITIVE" color="~text_color" />
|
||||
<sprite color="~device_color" width="20" height="20" src="bar/checkbox-checked.svg" />
|
||||
<CheckBox translation="BAR.ADDITIVE" color="~text_color" />
|
||||
</rectangle>
|
||||
</div>
|
||||
</elements>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use glam::Affine3A;
|
||||
use idmap::IdMap;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use smallvec::{smallvec, SmallVec};
|
||||
use smallvec::{SmallVec, smallvec};
|
||||
use std::sync::Arc;
|
||||
use wgui::{
|
||||
gfx::WGfx, globals::WguiGlobals, renderer_vk::context::SharedContext as WSharedContext,
|
||||
@@ -97,6 +97,7 @@ impl AppState {
|
||||
wgui_globals: WguiGlobals::new(
|
||||
Box::new(gui::asset::GuiAsset {}),
|
||||
wgui::globals::Defaults {
|
||||
dark_mode: true,
|
||||
text_color: wgui::drawing::Color::new(1.0, 1.0, 1.0, 1.0),
|
||||
},
|
||||
)?,
|
||||
|
||||
Reference in New Issue
Block a user