-
-
Notifications
You must be signed in to change notification settings - Fork 454
Display Drive Space #1365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display Drive Space #1365
Conversation
- when Type "d:\", showing graph with free space.
- Colorized(red) when usage space 90% over
|
Possible for other plug-ins to use this design? |
I guess so. if 'progress'(nullable int, 0-100) in result. automatically showing. |
|
Amazing! |
| public object Convert(object value, Type targetType, object parameter, CultureInfo culture) | ||
| { | ||
| double progress = (double)value; | ||
| string foreground = "#26a0da"; | ||
|
|
||
| if (progress >= 90) | ||
| { | ||
| foreground = "#da2626"; | ||
| } | ||
|
|
||
| return foreground; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Garulf @onesounds @taooceros Do we want to enable plugins to use progress bar? If so we will need to make this bar colorization customizable by plugin, otherwise any progress above 90 will be red.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably best we don't hard code red here and allow the color to be adjusted in some manner.
Best case scenario it's themed and easily overridden by the plugin.
|
@Garulf @onesounds @taooceros just changed the code a bit to allow plugins to use progress bar by providing the Result.ProgressBar value and optionally setting the color themselves. Let me know if you guys ok with the change, if all good we can merge in. |
cool. I tested it and there's no problem. I think this structure is better. let's merge. |
|
I have not tested but I have looked at the code. I see no issues |
Features
Test Case