-
-
Notifications
You must be signed in to change notification settings - Fork 599
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
SVG icons #5102
Comments
For a long time already I'm thinking about changing icons (all, in whole app) to SVG icons, which would allow toolbar buttons to be bigger, icons to be bigger and thus such buttons would be much easier to distinguish visually and easier to avoid misclicks due to small button size. Even for color-blind people. This is especially important on high-dpi monitors, where toolbar buttons become really, really small. The main problem with this is that it's not easy to find svg iconset that would fit all the current needs in the app. |
Yes, but to use SVG icons across whole application it's not that easy, because SQLiteStudio currently uses over 200 different icons. |
I'm hoping that we are not far from getting yet another AI model, that could generate SVG icons on demand from the prompt. |
Try AI option if you want, I not interested in doing this job. |
Does the SVG version of SQLiteStudio need all the icon as SVG ? Can we create the SVG icons only for the most important/visible icons as a first step ? |
It doesn't make sense to change just 1 or few icons. Making just few buttons bigger will make application ugly and weird. I mean bigger both horizontally and vertically (as this is the point for using SVG iconset). The ultimate solution for SG icons in the app needs to address high-dpi displays and for that all icons need to be replaced with SVG. I'm not going with AI yet, as all the tools I found so far are not good enough. As for reusing icons by merging plus/minus mini-icons - this is already done dynamically by the application. See |
There is 221 icons. I can create those SVG. But there is a question of style. Do you want a very similar look or could I renew ? You have to agree the set of icons. I don't want to remake 2 or 3 times several icons ;-) I would prefer to work on the enhancements I need for my usage of SQLiteSutudio, specialy: If I work on the SVG, when would you do those enhancement and the 3.5 release ? |
I will be honest with you - I don't know when the 3.5 release will be. It's quite big release with a lot of new features yet to be implemented. It's really hard to estimate when would I be able to finish it. The "keep focused grid row" is planned for 3.4.5. As for the "User column width save" - can you remind me which issue on github is it? 221 icons sounds like a lot (!) of work. Are you experienced with icons design? I would appreciate such contribution. I'm just surprised. Positively surprised.
...as a demo and we can discuss if the style will work with the app. I think 3 icons is amount small enough not to turn you down you if something needs to be changed. Sounds good? |
Impressive! I like them a lot! Are you drawing all of them from scratch or do you use some tool to generate? I wonder what is the point of having these wider buttons for |
Thanks :-) I need you to technically validate those SVG. Is transparency ok ? Margins ? Does it is ok when used in SQLiteStudio toolbars ? |
Okay, give ma a day or two for that, okay? I will need to setup Qt 6.8 on my pc and play with these svg icons in SQLiteStudio developed 3.5.0 (from master branch) to see how they work out. |
I will also experiment with merging "attributes" to parent icons - i.e. to have just one "table" icon and then have "arrow", "add", "delete", "edit" small icons (which I call attributes), so that the application itself could merge them in runtime. Currently with png icons this provides quite big flexibility with icons and I hope it will be possible with svg icons too. |
In some case merging SVG can save SVG designing and correcting time. But we have to be careful with that because:
In any case, I need a list of SVGs to create. Actually my list is the PNGs list and I can do the job in one month. Don't complicate it too much with the merging option :-) Thanks for already released 3.4.5 ! |
I understand downsides of merging and I'm happy to create dedicated icons for each case. I just wanted to save you some time ;) I still need few more days to test SVG icons in master branch. The Qt 6 switch requires a bit of work from my side. The list of all used icons can be found in https://github.com/pawelsalawa/sqlitestudio/blob/master/SQLiteStudio3/guiSQLiteStudio/iconmanager.h
Basically all icons defined as 1st parameter needs to be created. In case of |
And one more thing - if it's possible to create these "attribute" icons (arrows, small plus, small minus, etc) anyway - even if they are not used currently - it would be really nice. In 1 year you might be busy and not able to create any new icons. In such case I can always re-use some existing icon and merge it with "attribute" icon in the app. Better that than nothing. |
Hi Pawel. You may had a lot off work to achieve a stable release for 3.4 branch. |
Right! Sorry for keeping you waiting. I've already started working on stuff in 3.5.0, but I got distracted from SVG. I will do it as soon as possible. Potentially even today. |
On toolbars/menus, these SVG look good (I upscale my OS interface by 200% to make the difference more noticable): The only problem I noticed so far are is database icon: For some reason the icon is not rendered correctly and so far I haven't found way around it. I don't think it's a problem of background, or because if I open this SVG in the well-respected XnView image viewer also renders it badly: Was there anything you did differently for the database icon, that could cause this? Like some SVG feature that is beyond SVG 1.2 standard? Qt has limited SVG support: https://doc.qt.io/qt-6/svgrendering.html. Maybe you can configure your SVG drawing software to save files using only the static features of SVG 1.2 Tiny? |
On the contrary, the rsvg-convert does the convertion to PNG with transparency correctly... so it's about limited SVG support in Qt. I continue to explore what possibilities we have here. |
Also Inkscape's command line interface allows for correct conversion to PNG with transparent background:
I will explore possibility of using multi-image icons (svg converted to several png sizes and used as single |
Okay, using pre-converted PNG files in several sizes from SVG works quite well, so we can continue with SVG. By default SVG icons will be used directly, but in cases when it's causing issues (like with the database icon), pre-rendered PNGs will be used. |
About icons. something like this (from phosphoricons): this is an example, but I think the whole icon set could be designed this way and, in my opinion, the final result would be more appreciable. Of course, if you think the path you've already taken is better, ignore my suggestion. |
TL;DR: I oppose flat icons in SQLiteStudio. There are places where such icons are good, but SQLiteStudio is not one of them. I am strongly against flat icons (no colors, 3d effects forbidden, etc). They are not prettier, nor more readable. That is a false picture forced over the years, because people were getting lazier and lazier (or cheaper and cheaper) and flat icons are just easy to do. Many flat icons are good in terms of "readability", but it's not because they are flat. It's because they were made with care for "readability" in mind. Same case could (and should) be applied to non-flat icons. In fact I did a quick test run with Google's material icons to see how that would look like in SQLiteStudio and the result was terribly ugly. There are numerous applications, that use flat icons and they may appear clean and pretty, but nobody ever tried to use nice colorful icons in them. It was easier to grab flat icons. It's easier to work with bright/dark themes with flat icons. They are easier to handle by developers/artists, but I think the app should be made primarily for users and easiness of development should come after that. Usually Electron based apps (a web originated framework) use flat icons, because whole web has this "style" for last decade or so. In some cases this is justified and serves a purpose, but in most cases they are just quick, ugly way. So.... that is that. I said it ;) |
@marcpley Nice: I think the brick here should have a bit bolder line. It seems thin comparing to lines on the other book icons. |
Completer and database set: |
Random colors or is there a logic I can use ? Or coherent with others icon sets ? |
I don't have particular colors in mind. I guess we need to try and see how they work out. |
For the completer icons, I would like to have their order if several of them can be side by side. |
… dark themes and made these dialogs unified across platforms, excluding need for side picture.
It seem there is a bug in Draw with transparency when exporting to SVG : the result transparency in the SVG is not the same than in ODG file. So it hard to set the transparency we want in SVG. Completer icons are the firsts with transparency, we will have to well verify the SVG result. |
Thanks. I do remember about the completer icons, but it's a Christmas time (and New Year's Eve is coming...) and I have limited time to spend on these matters, but I will definitely get back to this. |
The completers with colored background. |
Constraint set. |
Details
When modifying data in grid view, those 4 buttons are active:
Those buttons are very similar: same size, same chape, same colors for add/commit and delete/rollback pairs.
For colour-blind people the 4 buttons are very similar.
I propose to add a button size diff, for exemple:
They are not 16x16 px images but UI seem to deal with that.
Color diff could be added too.
The text was updated successfully, but these errors were encountered: