-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
New set of icons based on FontAwesome #2260
Conversation
@SylvainCorlay looking at it now :) I really like how the icons look inside the menus (small versions) but I am not entirely convinced on the look for the toolbars... maybe if we make the toolbars smaller it would look better? Also somehow I feel there is some incoherence between the file toolbar icons ant the rest of the icons, the file icons are defined by contours, but all the other icons as defined as filled... |
Indeed, the icons are really crisp in the menus but not pixel-perfect in the toolbars. Changing the size of the toolbars (bigger or smaller) should solve it.
|
(edited) indeed, the toolbar icons are much nicer when they are smaller - just pushed the change. |
@SylvainCorlay checking them now, waayyyyyyy better :-) It is looking very good (on linux so far), great job man. I think we just need to make sure that the rendered size is 14px or multiples (when font awesome icons are pixel perfect) Do you think you can make a test with these? just to check if it looks more coherent :p
Update: |
Now on windows
@SylvainCorlay I guess there is something pending to take care of disabled buttons, right? |
@goanpeca I fixed the issue with the spyder logo. (it remains a glyph) |
@SylvainCorlay cool :), what do you think of using filled vs, outlined icons? On windows the spyder icon (in the about dialogue and in the taksbar) still looks funky |
I think that we should include in the
@ccordoba12, any tests on Mac? screenshot? just curious |
Yeah, would should do something along these lines for the pixel perfection. |
Why the icons in the browser (for the exact same size in pixels) look so much better than the ones in a Qt application? Font Awesome website / qtawesome Screenshot |
Is this the anti-aliasing issue on Windows? In my case, they look very much alike. |
OK, not all icons have both versions (like the save button). |
yes I know, but besides the save button, most of the icons have a filled version, and my opinion is that the GUI looks more uniform if filled ones (I think it does look better) instead of a mixed of both. In the worst case, we make a filled save icon? |
Ok I made a check with windows... and there is a catch, it seems that when ClearType (a windows only thing) is enabled... it results in aliased icons 😞 |
OK, I can make some tries with filled icons. Although for |
Just a few comments from @goanpeca screenshot:
|
@ccordoba12 the screenshots are a bit out of date. Running the branch should show something nicer now. The toolbar is smaller. I agree on the icon to maximize the current plugin. It is mostly a placeholder for now. The step-out and step-into are really what I find much better about the new theme actually. If you find them too dense, the scale of the screenshot is not 1:1 and this was a screenshot to show the issues with windows and anti-aliasing. PS: do you still connect on gitter? |
Good to know! Sorry for not being on gitter. I was very busy finishing 2.3.4 and other things for the next Anaconda release, so I wanted to focus just on that. I'll come back to gitter this week :-) |
@ccordoba12 thanks for the comments, I agree with all of them :-), this is still a work in progress so hold on for some updates soon. |
I've got around 250 instances of call to qta.icon as of now. I have redesigned all the glyphs of the spyder font to be pixel-perfect at the same sizes as the font-awesome ones (14px and multiples) . |
It seems a rebase is needed here :-) |
Just rebased. Will create the icon manager we talked about with the freedesktop names sometimes in the week. |
@SylvainCorlay, can you rebase to see if we can get rid of the |
@@ -619,7 +619,7 @@ def create_dir_item(dirname, parent): | |||
displayed_name = dirname | |||
item = QTreeWidgetItem(parent, [displayed_name], | |||
QTreeWidgetItem.Type) | |||
item.setIcon(0, get_std_icon('DirClosedIcon')) | |||
item.setIcon(0, ima.icon('DirOpenIcon')) |
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.
Why this change in the icon name?
Ok, first review done. |
@ccordoba12 I moved the icon manager, followed your suggestions.
|
@ccordoba12 any update? |
Yes, please make Spyder 2 the default theme for now. When Spyder 3 is finished, we can make it the default :-) |
Done. The merge button is in the lower-right area of the page ;) |
@@ -163,6 +163,7 @@ def is_ubuntu(): | |||
DEFAULTS = [ | |||
('main', | |||
{ | |||
'icon_theme': 'spyder 3', |
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.
Not yet :-) Here it needs to be spyder 2
too.
Ok, waiting to hear from Travis before pressing the green button! I tested things in Qt4 and 5 and I'm glad to report they are working fine :-) |
Awesome. There are a couple of icon related prs coming your way, that depend on this.
|
Ok, here we go! |
New set of icons based on FontAwesome
@SylvainCorlay, I just noticed some small errors after merging (damn!): Some icons that are inherited from the operating system are missing in Spyder 2! The ones I can't see after a quick inspection are:
Please fix these issues ASAP :-) |
Hum this should work normally. I will fix tonight. |
I see what is going on. The commit where I fixed this was lost in a rebase. It is really simple. |
@ccordoba12 : fixed in #2480. |
@goanpeca @ccordoba12 opening this so that you can see what it looks like.
This is not intended to be merged as is. I want to add an intermediate layer with qtawesome that automates certain things like graying disabled font icons etc...
This requires the qtawesome 0.1.6, which I just pushed to pypi. Please update with
pip install --upgrade
.Besides, I want to make the spyder font its own project so that people can use it for the web as well, with the same mechanism as fontawesome.