more cargo
This commit is contained in:
1
monitors/monitor-tui-rs/Cargo.lock
generated
1
monitors/monitor-tui-rs/Cargo.lock
generated
@@ -230,6 +230,7 @@ version = "0.1.0"
|
|||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"chrono",
|
"chrono",
|
||||||
|
"console",
|
||||||
"dialoguer",
|
"dialoguer",
|
||||||
"regex",
|
"regex",
|
||||||
"which",
|
"which",
|
||||||
|
|||||||
@@ -9,3 +9,4 @@ which = "6"
|
|||||||
anyhow = "1"
|
anyhow = "1"
|
||||||
chrono = { version = "0.4", features = ["clock"] }
|
chrono = { version = "0.4", features = ["clock"] }
|
||||||
dialoguer = "0.11"
|
dialoguer = "0.11"
|
||||||
|
console = "0.15"
|
||||||
|
|||||||
@@ -46,11 +46,11 @@
|
|||||||
let pkgs = import nixpkgs { inherit system; }; in {
|
let pkgs = import nixpkgs { inherit system; }; in {
|
||||||
default = pkgs.mkShell {
|
default = pkgs.mkShell {
|
||||||
buildInputs = with pkgs; [
|
buildInputs = with pkgs; [
|
||||||
rustc cargo rustfmt clippy rust-analyzer rust-src
|
rustc cargo rustfmt clippy rust-analyzer
|
||||||
gnome-monitor-config xorg.xrandr bash coreutils
|
gnome-monitor-config xorg.xrandr bash coreutils
|
||||||
];
|
];
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
export RUST_SRC_PATH=${pkgs.rust-src}/lib/rustlib/src/rust/library
|
export RUST_SRC_PATH=${pkgs.rustPlatform.rustLibSrc}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ use std::path::{Path, PathBuf};
|
|||||||
use std::process::Command;
|
use std::process::Command;
|
||||||
use which::which;
|
use which::which;
|
||||||
use dialoguer::{theme::ColorfulTheme, Input, Select, MultiSelect};
|
use dialoguer::{theme::ColorfulTheme, Input, Select, MultiSelect};
|
||||||
|
use console::style;
|
||||||
|
|
||||||
const APP_NAME: &str = "GNOME Monitor TUI";
|
const APP_NAME: &str = "GNOME Monitor TUI";
|
||||||
|
|
||||||
@@ -18,7 +19,16 @@ fn theme() -> ColorfulTheme {
|
|||||||
// Slightly more vivid selection and success colors for a modern feel
|
// Slightly more vivid selection and success colors for a modern feel
|
||||||
t.values_style = t.values_style.bold();
|
t.values_style = t.values_style.bold();
|
||||||
t.active_item_style = t.active_item_style.bold();
|
t.active_item_style = t.active_item_style.bold();
|
||||||
t.selection_style = t.selection_style.bold();
|
// Customize prefixes for a cleaner, modern aesthetic
|
||||||
|
t.prompt_prefix = style("❯".to_string());
|
||||||
|
t.success_prefix = style("✔".to_string());
|
||||||
|
t.error_prefix = style("✘".to_string());
|
||||||
|
t.active_item_prefix = style("➤".to_string());
|
||||||
|
t.inactive_item_prefix = style(" ".to_string());
|
||||||
|
t.checked_item_prefix = style("◉".to_string());
|
||||||
|
t.unchecked_item_prefix = style("○".to_string());
|
||||||
|
t.picked_item_prefix = style("⭐".to_string());
|
||||||
|
t.unpicked_item_prefix = style(" ".to_string());
|
||||||
t
|
t
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user