summaryrefslogtreecommitdiffstats
path: root/src/constants.rs
diff options
context:
space:
mode:
authorClementTsang <cjhtsang@uwaterloo.ca>2020-03-09 00:52:29 -0400
committerClementTsang <cjhtsang@uwaterloo.ca>2020-03-09 00:52:29 -0400
commite5588f16063ccb430104ff931719bb9aca27a359 (patch)
treee4423872ed72edd1cb365407bb1e35ab86b7c953 /src/constants.rs
parent78a05bc68377497dfd52eaee37c7a5e3bedd71b1 (diff)
Add hiding time and autohiding time.
Diffstat (limited to 'src/constants.rs')
-rw-r--r--src/constants.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/constants.rs b/src/constants.rs
index f488ccfe..da98c16f 100644
--- a/src/constants.rs
+++ b/src/constants.rs
@@ -1,10 +1,11 @@
// How long to store data.
-pub const STALE_MAX_MILLISECONDS: u64 = 300 * 1000; // Keep 5 minutes of data.
+pub const STALE_MAX_MILLISECONDS: u64 = 600 * 1000; // Keep 10 minutes of data.
// How much data is SHOWN
pub const DEFAULT_TIME_MILLISECONDS: u64 = 60 * 1000; // Defaults to 1 min.
pub const STALE_MIN_MILLISECONDS: u64 = 30 * 1000; // Lowest is 30 seconds
pub const TIME_CHANGE_MILLISECONDS: u64 = 15 * 1000; // How much to increment each time
+pub const AUTOHIDE_TIMEOUT_MILLISECONDS: u64 = 5000; // 5 seconds to autohide
pub const TICK_RATE_IN_MILLISECONDS: u64 = 200;
// How fast the screen refreshes
@@ -143,7 +144,7 @@ pub const DEFAULT_CONFIG_CONTENT: &str = r##"
#default_time_value = 60000
# The time delta on each zoom in/out action (in milliseconds).
-# time_delta = 15000
+#time_delta = 15000
# These are all the components that support custom theming. Currently, it only
# supports taking in a string representing a hex colour. Note that colour support