Open prakhartiwari0 opened 2 years ago
Thanks for reporting. This is a CSS styling issue https://github.com/slgobinath/SafeEyes/blob/master/safeeyes/config/style/safeeyes_style.css#L109-L123
Until I fix it, you can modify with the CSS file available at /home/gobinath/.config/safeeyes/style/safeeyes_style.css
. If you find the solution, a PR would be highly appreciated.
Sure @slgobinath Let me check if I can, I will definitely help you with it!
Hey @slgobinath Can you guide me with the basics of the code? Is there any good resource from where I can learn how Linux Apps work, I know Python enough to understand the code, but until I understand the process, functions, module, the overall functionality of the code, I cannot do anything?
Hi, Sorry I don't have good documentation other than the code itself. The only difference between Linux apps and say Windows apps is the GUI framework. Though they are cross platform, windows only apps may not choose Gtk or Qt but those are the prominent frameworks in Linux. Other than the GUI stuff everything else is pure logic.
Safe Eyes is using Gtk for the GUI. All the core logic is written in Python. If you like to start building your own Linux app, start from hello world Gtk or Qt apps in Python (or any other language). Tutorials point has some good resources https://www.tutorialspoint.com/pygtk/pygtk_hello_world.htm Though the GUI can be coded in pure Python, there is a GUI designer called Glade for Gtk which allows drag and drop GUI design and export them as XML files. You can see the Safe Eyes Glade files in https://github.com/slgobinath/SafeEyes/tree/master/safeeyes/glade
Both Gtk and Qt frameworks allow styling widgets using CSS. The Reset button has the CSS class name defined here: https://github.com/slgobinath/SafeEyes/blob/master/safeeyes/glade/settings_dialog.glade#L86-L88
For example to change the button color, you only need to modify the /home/gobinath/.config/safeeyes/style/safeeyes_style.css
file and restart Safe Eyes.
If time permits (hardly these days), I will write some articles at https://www.linuxedo.com/ on how to write and publish Linux apps for beginners.
Thanks a lot for your guidance. And I will be waiting for those articles eagerly. If you can, then please share them with me once you have published them. I will learn the concepts and things required, brush up and enhance my Python skills and whatever is required to become a contributor to this project. And also, solve this particular issue.
Thanks again
At first I thought I had confirmed this but actually I see something different. For me the reset button is visible when it pops up, however the safeeyes icon that should be clicked to display the menu doesn't show.
I have been using safeeyes for 4 years, but I did not even know that the reset button existed behind the icon. I suggest we bring the reset button directly on the headerbar (can be done with GTK4)
How about something like this?
I can send a pull request if people like it.
Here is my branch https://github.com/archisman-panigrahi/SafeEyes/tree/reset-button-merge
How about this? (the icon does not have any function here)
Thanks @archisman-panigrahi I like the idea but the button looks big to my eyes.
I presonally prefer a smaller icon only button with a tooltip or adding a menu option to the TrayIcon context menu. Leaving it to the community though.
smaller icon only button with a tooltip
Until I saw this issue, I did not discover the reset button hidden inside the tooltip despite using safeeyes from 2019, so I would prefer the other option:
adding a menu option to the TrayIcon context menu
Describe the bug In the settings of safe eyes app, when I click on the icon at top left, I couldn't read what's written in the button that pops up because its completely white in there
To Reproduce Steps to reproduce the behavior:
Expected behavior It should be clearly visible what's written in it.
Desktop (please complete the following information):
Debug Log Run the Safe Eyes using
safeeyes --debug
command attach the ~/safeeyes.log` file. safeeyes.logScreenshots