flyinghyrax / Elementary

Some Rainmeter skins
http://rainmeter.net/cms/
22 stars 8 forks source link

Uptime skin variant without seconds #9

Open flyinghyrax opened 7 years ago

flyinghyrax commented 7 years ago

A user asked how to remove the seconds value from the uptime skin. It makes sense that one doesn't really need to know how many seconds one's computer has been running.

Create a variant of the uptime skin that does not display seconds.

flyinghyrax commented 7 years ago

This will be more complex than I thought, because the uptime skin actually uses a Lua script to determine what text to display, and it never displays seconds unless the computer has been on for less than an hour anyway.

flyinghyrax commented 7 years ago

https://github.com/flyinghyrax/Elementary/commit/bff72b64d8bda6ac7adf522a08b9ba20699952c5 changed the Lua script and added an option so that seconds can be hidden completely... but that still might not be enough, because it doesn't address this case: screenshot 1498496762 Here the uptime is over an hour but less than 1:01; ideally we'd like to show either "Uptime 1 Hour" or "Uptime 1 Hour N Seconds" in this case, depending on whether or not the user likes seconds. But I'm unsure if I can cover all the cases while keeping things relatively simple.