Comments (1)
I find the topic of icons in GTK confusing, I'm not sure what the right way of doing it is.
Though,
However, this is only good if you're using default icons, and is no good if you have a theme set that's not hicolor.
A better way (to the best of my knowledge) to explain using symbolic icons would be that it will look for an svg matching the specified svg name, in the currently set theme, so if you have for example a custon svg you want for a button, and your theme is Yaru, you would copy your svg to /usr/share/icons/Yaru/scalable/actions, than reference its name.
Of course, you wouldn't put your app icon in a theme folder, because it wouldn't show if the user had a different theme selected. All themes inherit hicolor so it should work there. GTK should resolve the name without needing to specify file type too.
I don't think this is what most applications do though. I'm not sure what the generally accepted way of doing it is.
from gtk4pythontutorial.
Related Issues (20)
- Please add a Gtk.MessageDialog HOT 8
- [Documentation / Example] Could a specific example for events be added? HOT 1
- Serious Warning
- Wrong method used in newest css-addition? HOT 1
- indicate some in python HOT 3
- add GridView example? HOT 2
- how to set app icon HOT 2
- Non-functioning code in the "Open with" and single instancing section. HOT 1
- Extra Tip: Radio Buttons example is wrong/obsolete HOT 1
- Please add code for "Extra Tip: Radio Buttons" into the corresponding source file
- Adw.AboutWindow codeblock explaination HOT 6
- Click in Entry HOT 1
- 'gi.repository.Gtk' object has no attribute 'FileDialog' error HOT 2
- set_modal seems to be used incorrectly HOT 1
- UI from XML HOT 1
- request: ShortcutWindow
- Adding an application icon HOT 1
- [Documentation] How to install python-gtk4? HOT 1
- Add section for Gtk.Video
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gtk4pythontutorial.