Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lt"
version = "0.0.8"
version = "0.0.9"
edition = "2024"
description = "An unofficial TUI client for Linear.app issues"
authors = ["Mark Di Marco <mark.dimarco@gmail.com>"]
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* **New in 0.0.4**: View switcher (`Tab`/`Shift+Tab`) - switch between custom views as defined in your Linear app
* **New in 0.0.6**: Now available to install view Homebrew (see **Installation**)
* **New in 0.0.7**: Search issues (`/`) - search all issues by simple search term
* **New in 0.0.9**: Much better color schemes for light and dark themed terminals

### Planned Features
* Faster loading via cacheing
Expand Down
13 changes: 5 additions & 8 deletions src/widgets/issue_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@ use ratatui::{
buffer::Buffer,
layout::{Constraint, Layout, Rect},
style::{
Color, Modifier, Style, Stylize,
palette::{
material::{AMBER, BLUE_GRAY},
tailwind::SLATE,
},
palette::
material::AMBER, Color, Modifier, Style, Stylize
},
text::{Line, Span, Text},
widgets::{Block, List, ListItem, ListState, Padding, Paragraph, StatefulWidget, Widget, Wrap},
Expand Down Expand Up @@ -271,7 +268,7 @@ impl MyIssuesWidget {
LtEvent::None
}
}
const SELECTED_STYLE: Style = Style::new().bg(SLATE.c100).fg(BLUE_GRAY.c900);
const SELECTED_STYLE: Style = Style::new().fg(Color::Cyan).add_modifier(Modifier::BOLD).add_modifier(Modifier::ITALIC);

impl Widget for &MyIssuesWidget {
fn render(self, area: Rect, buf: &mut Buffer) {
Expand Down Expand Up @@ -329,8 +326,8 @@ impl Widget for &MyIssuesWidget {
priority_icon
);
text.extend([
item.title.clone().white(),
line.add_modifier(Modifier::BOLD).blue(),
item.title.clone(),
line.add_modifier(Modifier::BOLD).blue().to_string(),
]);
ListItem::new(text)
})
Expand Down
4 changes: 2 additions & 2 deletions src/widgets/selected_issue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl SelectedIssueWidget {
}
}

const DICT_HEADER: Style = Style::new().fg(SLATE.c100);
const DICT_HEADER: Style = Style::new();

fn header(text: &str) -> Line {
Line::from(Span::from(text.to_owned() + ":\n")).style(DICT_HEADER)
Expand Down Expand Up @@ -189,7 +189,7 @@ impl Widget for &SelectedIssueWidget {
),
};

let created_at_title = Line::from(created_at).fg(SLATE.c100).right_aligned();
let created_at_title = Line::from(created_at).right_aligned();

// collapse borders for nicer UI
let collapsed_top_and_left_border_set = symbols::border::Set {
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/tab_widget.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ impl Widget for &TabWidget {
} else if tab.tab_type == TabType::SearchResults {
(iconmap::ico_to_nf("Magnify"), Color::Yellow.to_string())
} else {
(iconmap::ico_to_nf("Home"), String::from("#FFFFFF"))
(iconmap::ico_to_nf("Home"), Color::Blue.to_string())
};
let project_color = Color::from_str(&color).unwrap();
Span::from(format!("{} {}", icon, tab.title.clone().bold()))
Expand Down