zhrexl / DrawOnYourScreen2

GNU General Public License v3.0
209 stars 20 forks source link

Possibility of having transparency / highlighting ? #25

Closed wapiflapi closed 1 year ago

wapiflapi commented 1 year ago

Hi,

This tool seems great, it was recomended to me for the usecase of drawing on the screen before taking a screenshot.

In this context I would find it super useful to be able to highlight things. While a dedicated highlight tool would be amazing, I think that might not be necessary to get started: I was thinking just being able to use a semi-transparent color would be enough.

Is there anyway of adding a transparent color to the palette ? Any pointers as to how to do this ? If necessary I'm okay making changes in the code to get it to work.

What are the main obstacles to doing this?

Best,

zhrexl commented 1 year ago

Unintentionally you just made me realize I wasn't initializing the palettes colors as it was supposed to be. This is fixed now on version 12.5 (I'll put it on GNOME Extensions today but its already on this repository).

With version 12.5 this is how you do it:

  1. Open the extensions settings page

  2. Go to Drawing Page tab

  3. Click on '+' (which means adding a new palette)

  4. You can now close the settings page

  5. Open dconf-editor

  6. Navigate to /org/gnome/shell/extensions/draw-on-your-screen/drawing

  7. scroll down til Palettes and click twice on it to edit image

  8. Here you should see a 'New Palette' with 'Black' colors image

  9. You can edit its name and its color in the following format: color:name of color and click on Apply. Example: In my case I changed 'Black' to 'rgba(165,169,45,0.1):Highlight' and this is what I got: image

You must remember that while rgb goes from 0 to 255, the alpha parameter is a floating point value that ranges from 0.0 to 1.0.

Finally, IMO all this necessary steps for achieving a simple task as this one is a huge ux flaw in this project. I'll improve it til next week.

Thanks for reporting. I'll keep this issue open until 12.6 is released.

zhrexl commented 1 year ago

Now it is possible to edit the palettes on extension settings which makes things a lot simpler.

And then just select your desired color with or without transparency

wapiflapi commented 1 year ago

This is so cool, I never thought I could have this as a feature so quickly, let alone that you would just do it for me :-)

Thank you so much @zhrexl you are amazing :heart: