mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
app: increase menu sep thickness to avoid shimmering look due to 1px moving too small with motion
This commit is contained in:
@@ -42,6 +42,7 @@ mod android_ui_consts {
|
||||
pub const CHANNEL_LABEL_Y: f32 = 35.;
|
||||
pub const CHANNEL_LABEL_LINESPACE: f32 = 140.;
|
||||
pub const CHANNEL_LABEL_FONTSIZE: f32 = 44.;
|
||||
pub const MENU_SEP_SIZE: f32 = 3.;
|
||||
pub const VERBLOCK_SCALE: f32 = 150.;
|
||||
pub const VERBLOCK_X: f32 = 180.;
|
||||
pub const VERBLOCK_Y: f32 = 80.;
|
||||
@@ -66,6 +67,7 @@ mod ui_consts {
|
||||
pub const CHANNEL_LABEL_Y: f32 = 14.;
|
||||
pub const CHANNEL_LABEL_LINESPACE: f32 = 60.;
|
||||
pub const CHANNEL_LABEL_FONTSIZE: f32 = 22.;
|
||||
pub const MENU_SEP_SIZE: f32 = 1.;
|
||||
pub const VERBLOCK_SCALE: f32 = 25.;
|
||||
pub const VERBLOCK_X: f32 = 50.;
|
||||
pub const VERBLOCK_Y: f32 = 50.;
|
||||
@@ -189,6 +191,7 @@ pub async fn make(app: &App, content: SceneNodePtr, i18n_fish: &I18nBabelFish) {
|
||||
prop.set_f32(atom, Role::App, 3, 0.5).unwrap();
|
||||
|
||||
node.set_property_f32(atom, Role::App, "font_size", CHANNEL_LABEL_FONTSIZE).unwrap();
|
||||
node.set_property_f32(atom, Role::App, "sep_size", MENU_SEP_SIZE).unwrap();
|
||||
|
||||
let prop = node.get_property("text_color").unwrap();
|
||||
prop.set_f32(atom, Role::App, 0, 1.).unwrap();
|
||||
@@ -200,7 +203,7 @@ pub async fn make(app: &App, content: SceneNodePtr, i18n_fish: &I18nBabelFish) {
|
||||
prop.set_f32(atom, Role::App, 0, 0.4).unwrap();
|
||||
prop.set_f32(atom, Role::App, 1, 0.4).unwrap();
|
||||
prop.set_f32(atom, Role::App, 2, 0.4).unwrap();
|
||||
prop.set_f32(atom, Role::App, 3, 1.).unwrap();
|
||||
prop.set_f32(atom, Role::App, 3, 0.4).unwrap();
|
||||
|
||||
let prop = node.get_property("padding").unwrap();
|
||||
prop.set_f32(atom, Role::App, 0, CHANNEL_LABEL_X).unwrap();
|
||||
|
||||
Reference in New Issue
Block a user