mirror of
https://github.com/aome510/hackernews-TUI.git
synced 2026-04-26 09:25:56 +03:00
[PR #54] [MERGED] Rewrite theme structs #71
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hackernews-TUI#71
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/54
Author: @aome510
Created: 12/15/2021
Status: ✅ Merged
Merged: 12/15/2021
Merged by: @aome510
Base:
main← Head:rewrite-theme-struct📝 Commits (9)
343c0e3delete all theme-related structs and construct new ones5be9ef8implementConfigParserfor theme structs1c637e8usetheme::ComponentStyleto construct style for specific componentsd97dbb7implement default values fortheme::Paletteandtheme::ComponentStyleb992575remove the usecurisve::theme::PaletteColorfor constructing stylesee0f62buse app's color palette when parsing the colors34eebaeaddTODOto updatethemesection in the example config fileaee1bbeadd documentation for main theme structsbf1837aminor default color tweaks📊 Changes
12 files changed (+244 additions, -182 deletions)
View changed files
📝
examples/hn-tui.toml(+1 -25)📝
hackernews_tui/src/client/parser.rs(+5 -7)📝
hackernews_tui/src/config/mod.rs(+2 -0)📝
hackernews_tui/src/config/theme.rs(+196 -77)📝
hackernews_tui/src/main.rs(+9 -4)📝
hackernews_tui/src/utils.rs(+10 -18)📝
hackernews_tui/src/view/article_view.rs(+10 -26)📝
hackernews_tui/src/view/comment_view.rs(+1 -1)📝
hackernews_tui/src/view/error_view.rs(+1 -1)📝
hackernews_tui/src/view/help_view.rs(+3 -11)📝
hackernews_tui/src/view/search_view.rs(+2 -5)📝
hackernews_tui/src/view/story_view.rs(+4 -7)📄 Description
Brief description of changes
PaletteandComponentStylestructuresPalettedefines the terminal color scheme for the application, so that it can be compatible with other theme formatsComponentStyledefines additional colors, styles for specific components of the application🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.