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
Improved css #1789
Improved css #1789
Conversation
I am thinking maybe making the css loadable from a file? |
Yeah, but there's OS X specific code about insensitive context menus. And I don't want to waste more time on build scripts like in my other PRs. I think I'd have to modify both build scripts to intelligently insert OS X stylesheet code using a configuration file (just like my previous attempt with Anyway, if you think it's simple then I could try implementing loadable css file... |
I think for the first iteration, we can just do #ifdef for file loading function. For example:
I am not sure, but it looks like there aren't many CSS styles out there, so you don't have to worry about duplicating code. In total there will be 3 almost identical css files with some OS-specific elements. |
@ice0 , What about: load_style("synfig.css");
#ifdef _WIN32
load_style("synfig.win.css");
#elseif _APPLE
load_style("synfig.mac.css");
#else
load_style("synfig.lin.css");
#endif Load a generic one, and maybe an OS-specific. And, @Keyikedalube , you can add it in a new |
Guys, I was reading this post https://www.geeksforgeeks.org/how-to-include-one-css-file-in-another/ Write once and import :) No need to duplicate code by hand multiple times... 👍 👍 👍 your suggestions. Thanks! |
Looks like Gnome CSS also support this feature (https://developer.gnome.org/gtk3/stable/chap-css-overview.html) |
This comment has been minimized.
This comment has been minimized.
Need help with why OS X build is failing... |
If I'm not able to figure out how to fix the time slider padding by this week (today and tomorrow) BTW, here are some things I tried:
Both of them didn't work Anyway, here's how the time slider looks now after this PR:And before this PR: |
AS far as I remember, the height of timeslider is related to the height of the header of Parameters panel treeview. |
Will all commits be squashed? |
Yes And if I remember correctly, Telegram repo has a policy of keeping only one commit per PR. Contributors are supposed to squash their commits. |
They are related to sync scroll of parameters panel with timetrack
Em sex, 23 de out de 2020 21:01, Keyikedalube Ndang <
notifications@github.com> escreveu:
… And that is reason indeed.
[image: Captura de tela de 2020-10-23 17-06-00]
<https://user-images.githubusercontent.com/1323987/97049537-3ffd5280-1552-11eb-8485-a5bb2a7fcce8.png>
See? They're aligned.
The treeview header has buttons (for column sort) and somehow they style
were affected.
[image: Captura de tela de 2020-10-23 17-08-02]
<https://user-images.githubusercontent.com/1323987/97049641-6cb16a00-1552-11eb-9954-cbac19949e6d.png>
(picture from GtkInspector)
And I thought OOP design was to compartmentalize...
Those two are connected and I would never have suspected that strange
behavior.
Anyway thanks for the heads up! Investigating right away...
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1789 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKDHUY6RYW74TTV4TQOVG3SMIKOJANCNFSM4SWBPCIA>
.
|
f4f243b
to
4c71c32
Compare
Merged. Thank you! |
Fixes #1061
Fixes #1390
Use Windows gtk3 theme to have a proper global look and feel instead of modifying UI by hand.
In my opinion, synfigstudio main window toolbar buttons need to be scaled down for every platform for space efficiency. But not the other parts of GUI ie., dialogs and their buttons. These things should be left alone. Or let third-party themes do the trick. Like this Windows 8 theme.
I need help with styling timeslider. Couldn't figure out how to increase its height with CSS. Or is it even possible?