mirror of
https://github.com/aome510/hackernews-TUI.git
synced 2026-04-26 17:35:55 +03:00
[PR #55] [MERGED] Tweak application UI #74
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hackernews-TUI#74
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/aome510/hackernews-TUI/pull/55
Author: @aome510
Created: 12/15/2021
Status: ✅ Merged
Merged: 12/16/2021
Merged by: @aome510
Base:
main← Head:tweak-app-UI📝 Commits (10+)
d0fa730re-design theStoryViewto make it look like original HNb957919implement a title bar for story view83295c4change default shortcuts the switch story views by tags toF{1-5}9d85612tweak padding, add YCom logo to the story view's title bar863fa4cadd foreground color forlink_idandmatched_highlightcomponent styles49a8d3caddunicode-widthd1bf990implement padding support forview::text_view::TextView577171dadd block padding (with colors) forCommentViewcomponents26ee1e9tweak the application palette's and components' colors549d2cbimplement a custom loading animation function📊 Changes
14 files changed (+369 additions, -105 deletions)
View changed files
📝
Cargo.lock(+1 -0)📝
hackernews_tui/Cargo.toml(+1 -0)📝
hackernews_tui/src/client/mod.rs(+2 -0)📝
hackernews_tui/src/client/parser.rs(+28 -19)📝
hackernews_tui/src/config/keybindings.rs(+5 -5)📝
hackernews_tui/src/config/mod.rs(+2 -0)📝
hackernews_tui/src/config/theme.rs(+93 -33)📝
hackernews_tui/src/main.rs(+2 -0)📝
hackernews_tui/src/utils.rs(+16 -20)📝
hackernews_tui/src/view/async_view.rs(+42 -1)📝
hackernews_tui/src/view/comment_view.rs(+18 -3)📝
hackernews_tui/src/view/help_view.rs(+5 -2)📝
hackernews_tui/src/view/story_view.rs(+73 -18)📝
hackernews_tui/src/view/text_view.rs(+81 -4)📄 Description
Brief description of changes
StoryViewStoryViewto make it look like HN webpageStoryViewinspired by HN title barNew

StoryView:CommentViewNew

CommentView:Loading screen
use_pacman_loadingconfig option to configure)async_loading_view-based loading screen with custom colorsNew loading screen (pacman):

General
config::ColorStyletoconfig::Styleand allow to specify at most oneEffectperStyleview::text_view::TextViewBreaking changes
front_page:C-ftoF1story:C-ztoF2ask_hn:C-xtoF3show_hn:C-ctoF4ask_hn:C-vtoF5🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.