ui: fix default stroke color and rounded box background

This commit is contained in:
ardocrat 2023-08-16 04:40:19 +03:00
parent c0db456838
commit bc6f2623d9
2 changed files with 2 additions and 2 deletions

View file

@ -33,7 +33,7 @@ impl Colors {
pub const TITLE: Color32 = Color32::from_gray(60); pub const TITLE: Color32 = Color32::from_gray(60);
pub const BUTTON: Color32 = Color32::from_gray(249); pub const BUTTON: Color32 = Color32::from_gray(249);
pub const GRAY: Color32 = Color32::from_gray(120); pub const GRAY: Color32 = Color32::from_gray(120);
pub const STROKE: Color32 = Color32::from_gray(190); pub const STROKE: Color32 = Color32::from_gray(200);
pub const INACTIVE_TEXT: Color32 = Color32::from_gray(150); pub const INACTIVE_TEXT: Color32 = Color32::from_gray(150);
pub const ITEM_BUTTON: Color32 = Color32::from_gray(90); pub const ITEM_BUTTON: Color32 = Color32::from_gray(90);
pub const ITEM_STROKE: Color32 = Color32::from_gray(220); pub const ITEM_STROKE: Color32 = Color32::from_gray(220);

View file

@ -323,7 +323,7 @@ impl View {
sw: if r[2] { 8.0 } else { 0.0 }, sw: if r[2] { 8.0 } else { 0.0 },
se: if r[3] { 8.0 } else { 0.0 }, se: if r[3] { 8.0 } else { 0.0 },
}, },
fill: Colors::WHITE, fill: Colors::TRANSPARENT,
stroke: Self::ITEM_STROKE, stroke: Self::ITEM_STROKE,
}; };
let bg_idx = ui.painter().add(bg_shape); let bg_idx = ui.painter().add(bg_shape);