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()
|
egui::CentralPanel::default()
|
||||||
.frame(egui::Frame {
|
.frame(egui::Frame {
|
||||||
|
stroke: View::item_stroke(),
|
||||||
fill: Colors::white_or_black(false),
|
fill: Colors::white_or_black(false),
|
||||||
inner_margin: Margin {
|
inner_margin: Margin {
|
||||||
left: View::far_left_inset_margin(ui) + 4.0,
|
left: View::far_left_inset_margin(ui) + 4.0,
|
||||||
|
@ -370,6 +371,7 @@ impl WalletMessages {
|
||||||
if amount_edit_before != self.request_amount_edit {
|
if amount_edit_before != self.request_amount_edit {
|
||||||
self.request_error = None;
|
self.request_error = None;
|
||||||
if !self.request_amount_edit.is_empty() {
|
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()) {
|
match amount_from_hr_string(self.request_amount_edit.as_str()) {
|
||||||
Ok(a) => {
|
Ok(a) => {
|
||||||
if !self.request_amount_edit.contains(".") {
|
if !self.request_amount_edit.contains(".") {
|
||||||
|
|
|
@ -90,6 +90,7 @@ impl WalletTab for WalletTransport {
|
||||||
// Show transport content panel.
|
// Show transport content panel.
|
||||||
egui::CentralPanel::default()
|
egui::CentralPanel::default()
|
||||||
.frame(egui::Frame {
|
.frame(egui::Frame {
|
||||||
|
stroke: View::item_stroke(),
|
||||||
fill: Colors::white_or_black(false),
|
fill: Colors::white_or_black(false),
|
||||||
inner_margin: Margin {
|
inner_margin: Margin {
|
||||||
left: View::far_left_inset_margin(ui) + 4.0,
|
left: View::far_left_inset_margin(ui) + 4.0,
|
||||||
|
|
|
@ -109,6 +109,7 @@ impl WalletTab for WalletTransactions {
|
||||||
// Show wallet transactions content.
|
// Show wallet transactions content.
|
||||||
egui::CentralPanel::default()
|
egui::CentralPanel::default()
|
||||||
.frame(egui::Frame {
|
.frame(egui::Frame {
|
||||||
|
stroke: View::item_stroke(),
|
||||||
fill: Colors::button(),
|
fill: Colors::button(),
|
||||||
inner_margin: Margin {
|
inner_margin: Margin {
|
||||||
left: View::far_left_inset_margin(ui) + 4.0,
|
left: View::far_left_inset_margin(ui) + 4.0,
|
||||||
|
|
Loading…
Reference in a new issue