-
-
Notifications
You must be signed in to change notification settings - Fork 43
Custom icon adjustment in Drawing Tool #791
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
Conversation
bin/shutter
Outdated
| ); | ||
| } | ||
|
|
||
| our $dark_icons = 1; |
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.
| our $dark_icons = 1; | |
| my $dark_icons = 1; |
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.
It spit errors with "my":
Global symbol "$dark_icons" requires explicit package name (did you forget to declare "my $dark_icons"?) at ./bin/shutter line 6020.
Execution of ./bin/shutter aborted due to compilation errors.
at ./bin/shutter line 11118.
But the variable needs to be defined elsewhere anyway, I just put it there for a quick test.
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.
Never mind, the reason for the error was elsewhere, "my" also works. I will change it while putting the variable to a more sensible place.
|
I added the radio buttons. For now the "auto" option is dysfunctional. The icons are set at Drawing Tool launch. |
|
The automatic detection seems to work really well! But I think that the menu option is still necessary for cases when it fails. Now I wonder what is the fastest way to create a lot of symlinks. The contents of |
|
A for loop in zsh? :) Or reading the icon could check one dir first, and if file doesn't exist read the other dir |
|
Rather than passing 3 new bool parameters, let's pass only 1, then do the coloring depending on the value passed there |
|
Okay, should be fine now, please have a look! |
Sorry, missed this one. I will have a look into it. |
|
Better this way? |
For the moment there is just a fixed variable
$dark_iconswhich controls which custom icon set is used. To do: