ui: replace comma by dot at request creation amount input, fix wallet tab content stroke
This commit is contained in:
parent
530f402d11
commit
412b93bab7
3 changed files with 4 additions and 0 deletions
|
@ -129,6 +129,7 @@ impl WalletTab for WalletMessages {
|
|||
|
||||
egui::CentralPanel::default()
|
||||
.frame(egui::Frame {
|
||||
stroke: View::item_stroke(),
|
||||
fill: Colors::white_or_black(false),
|
||||
inner_margin: Margin {
|
||||
left: View::far_left_inset_margin(ui) + 4.0,
|
||||
|
@ -370,6 +371,7 @@ impl WalletMessages {
|
|||
if amount_edit_before != self.request_amount_edit {
|
||||
self.request_error = None;
|
||||
if !self.request_amount_edit.is_empty() {
|
||||
self.request_amount_edit = self.request_amount_edit.trim().replace(",", ".");
|
||||
match amount_from_hr_string(self.request_amount_edit.as_str()) {
|
||||
Ok(a) => {
|
||||
if !self.request_amount_edit.contains(".") {
|
||||
|
|
|
@ -90,6 +90,7 @@ impl WalletTab for WalletTransport {
|
|||
// Show transport content panel.
|
||||
egui::CentralPanel::default()
|
||||
.frame(egui::Frame {
|
||||
stroke: View::item_stroke(),
|
||||
fill: Colors::white_or_black(false),
|
||||
inner_margin: Margin {
|
||||
left: View::far_left_inset_margin(ui) + 4.0,
|
||||
|
|
|
@ -109,6 +109,7 @@ impl WalletTab for WalletTransactions {
|
|||
// Show wallet transactions content.
|
||||
egui::CentralPanel::default()
|
||||
.frame(egui::Frame {
|
||||
stroke: View::item_stroke(),
|
||||
fill: Colors::button(),
|
||||
inner_margin: Margin {
|
||||
left: View::far_left_inset_margin(ui) + 4.0,
|
||||
|
|
Loading…
Reference in a new issue