From deb93e44b3d0ae68adbc27823dd40f2b110599ea Mon Sep 17 00:00:00 2001 From: dam Date: Thu, 7 Apr 2022 16:32:09 +0000 Subject: Changed database entries display text. --- logic/database.gd | 2 +- readme.md | 24 ++++++++++++++++++------ 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/logic/database.gd b/logic/database.gd index 8acf1b6..a22c964 100644 --- a/logic/database.gd +++ b/logic/database.gd @@ -35,7 +35,7 @@ func _ready(): func get_entry_view(database_entry: Dictionary) -> String: - return "%6s | %6s | %s" % [database_entry.process_id, database_entry.surgery_id, DatabaseEntry.get_entry_date(database_entry)] + return "%9s | %4s | %04d-%02d" % [database_entry.process_id, database_entry.surgery_id, database_entry.date_year, database_entry.date_month] func item_selected(index: int): diff --git a/readme.md b/readme.md index 646e94d..d0992b2 100644 --- a/readme.md +++ b/readme.md @@ -65,17 +65,29 @@ Surgery Log - on about screen should close it; - on auto-fill pop-up, should close it; - on database screen, should deselect selected item, otherwise should quit the app; -- [ ] Improve appearance: - - [ ] database menu; - - [ ] database action buttons; -- [ ] Theming: +- [x] db entry should be printed as "%9s | %4s | %yyyy-%MM"; +- [ ] Adjust theme: + - [ ] Buttons normal are too dark; + - [ ] Dialog buttons and stage items have minimum vertical size set to 62; maybe do this on theme; + - [ ] LineEdit: thinner lines on normal; bigger brighter lines on focus; more vertical content margin + - [ ] Smaller font + - [ ] Rounder buttons + - [ ] Increase buttons height + - [ ] Make database and stage buttons equal; + - [ ] Apply theme on menubutton popup; + - [ ] Make panels (popup background) rounder; - [ ] Make all buttons with same style; - [ ] Maybe include different font with better icons; - [ ] Make rounded corners - [ ] LineEdit without fill and only one line below (stage may increase left margin) - [ ] Increase scrollbar width (in content margin property) - - [ ] Create theme_light and theme_dark; -- [ ] Cleanup code: search by tags @DAM and TODO; + - [ ] Improve appearance of database menu; +- [ ] Create light theme; +- [ ] Create theme entry in menu and save on settings file; +- [ ] Cleanup code: + - [ ] Search by tags @DAM and TODO; + - [ ] Rename dialog and popup classes; + - [ ] Reorganize code files; - [ ] main/screen_controller is responsible for whos currently on focus, fade animations, input access (enable/disable), and back_key_notification handling. For input use: node.set_process_input(!pause) -- cgit v1.2.3