Visual changes
This commit is contained in:
+5
-3
@@ -1,14 +1,15 @@
|
||||
use crate::data_provider::history::{get_history_of_set, HistoryItem};
|
||||
use crate::data_provider::history::{HistoryItem, get_history_of_set};
|
||||
use crate::lang::WordData;
|
||||
use crate::navigation::{NavigatedPage, Page};
|
||||
use crate::styling::*;
|
||||
use crate::{AppState, RootMessage};
|
||||
use HistoryMessage::Back;
|
||||
use chrono::Local;
|
||||
use iced::alignment::Horizontal::Center;
|
||||
use iced::widget::space::horizontal;
|
||||
use iced::widget::*;
|
||||
use iced::{Element, Fill, FillPortion, Task};
|
||||
use std::sync::{Arc, Mutex};
|
||||
use HistoryMessage::Back;
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct HistoryState {
|
||||
@@ -82,10 +83,11 @@ impl HistoryState {
|
||||
.align_x(Center),
|
||||
iced::widget::column![
|
||||
text!("{} ➞ {}", item.before, item.after),
|
||||
text!("{}", item.timestamp.format("%d.%m %H:%M"))
|
||||
text!("{}", item.timestamp.with_timezone(&Local).format("%d.%m %H:%M"))
|
||||
]
|
||||
.spacing(5)
|
||||
.align_x(Center)
|
||||
|
||||
]
|
||||
.spacing(5),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user