diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2020-09-09 21:51:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-09 21:51:52 -0400 |
commit | c58b2c2bb9b0013d4f0fddbf39df5c7a6efa9bc4 (patch) | |
tree | de70c812920489228ca463c120b735fc855b5600 /src/constants.rs | |
parent | c426b0c7c4b30b09a63cfdcd3bb41a7d7d9ad00c (diff) |
refactor: rewrite column algorithm (#227)
Update how we position and generate column widths to look less terrible. This also adds truncation w/ ellipsis to the columns, and for processes, the state will automatically shrink to a short form (just a character) if there isn't enough space.
Diffstat (limited to 'src/constants.rs')
-rw-r--r-- | src/constants.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/constants.rs b/src/constants.rs index 99f663ce..6d0bc530 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -19,10 +19,6 @@ pub const MAX_KEY_TIMEOUT_IN_MILLISECONDS: u64 = 1000; // Number of colours to generate for the CPU chart/table pub const NUM_COLOURS: usize = 256; -// Canvas stuff -// The minimum threshold when resizing tables -pub const FORCE_MIN_THRESHOLD: usize = 5; - // Limits for when we should stop showing table gaps/labels (anything less means not shown) pub const TABLE_GAP_HEIGHT_LIMIT: u16 = 7; pub const TIME_LABEL_HEIGHT_LIMIT: u16 = 7; @@ -249,7 +245,7 @@ pub const DEFAULT_BATTERY_LAYOUT: &str = r##" pub const DEFAULT_CONFIG_FILE_PATH: &str = "bottom/bottom.toml"; // Default config file -// FIXME: Update the default config +// FIXME [CHORE]: Update the default config pub const DEFAULT_CONFIG_CONTENT: &str = r##" # This is a default config file for bottom. All of the settings are commented # out by default; if you wish to change them uncomment and modify as you see |