mirror of
https://github.com/jwinterm/grim.git
synced 2026-12-03 11:13:57 +01:00
ui: current wallet item background
This commit is contained in:
@@ -376,12 +376,12 @@ impl WalletsContent {
|
||||
let mut rect = ui.available_rect_before_wrap();
|
||||
rect.set_height(78.0);
|
||||
let rounding = View::item_rounding(0, 1, false);
|
||||
let bg = if current {
|
||||
Colors::item_current()
|
||||
let (bg, stroke) = if current {
|
||||
(Colors::fill_deep(), View::item_stroke())
|
||||
} else {
|
||||
Colors::fill()
|
||||
(Colors::fill(), View::hover_stroke())
|
||||
};
|
||||
ui.painter().rect(rect, rounding, bg, View::hover_stroke());
|
||||
ui.painter().rect(rect, rounding, bg, stroke);
|
||||
|
||||
ui.allocate_ui_with_layout(rect.size(), Layout::right_to_left(Align::Center), |ui| {
|
||||
// Setup padding for item buttons.
|
||||
|
||||
Reference in New Issue
Block a user