-
Notifications
You must be signed in to change notification settings - Fork 518
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
Regression, theming inconsistency in 190c #1024
Comments
@hollunder, what inconsistency are we looking at here? The tabs in the notebook? There was a change in wxwidgets to reset the default configuration, so I had to enforce a specific style for the notebook, but from the documentation it should match what was there earlier. Can you try commenting out the line 742 ( |
Yes, I tested with GTK3 and didn't see any difference; I didn't realize that this is going to be different with GTK2. I think I may just have disable this for Linux to keep it consistent with how it's set as the default. |
Actually, can you try with GTK3 to see if there is any difference with the result? |
This is something that needs to be addressed in wxwidgets; I opened a ticket for it. |
@hollunder, could you report back the numbers you get for that back theme when you execute the following commands in the Console?
|
For the Breeze-Dark theme, a grey-ish one.
For deepin-dark, a almost black theme.
These are two I have installed on the laptop, I can send you the colours for the one I'm actually using on the desktop in a couple hours. |
For the theme I use on my desktop, Arc-Dark-Solid, these are the colours.
|
@hollunder, thank you for the details. Can you apply the following patch to wxwidgets and recompile it? I'm not sure if it's going to apply it cleanly to your version of wxwidgets (3.0.4?), but it should explicitly set the font color in DrawTab method of
Please let me know the results with one of the dark themes. |
I figure when I have to build wxgtk myself I might as well use a newer version and built 3.1.3. The patch applied cleanly, but wxLua doesn't build against that. |
No problem; the screenshot gives me the information I need, thank you! |
@hollunder, the colors should be fixed in the latest release beta, but the wxwidgets changes are not likely to be ported back to 3.0.4 ;(. Can you try this branch (https://github.com/pkulchenko/ZeroBraneStudio/tree/upgrade-binaries-190d) and let me know if the tab text colors look correct? It should also detect the "dark" theme, so if you are setting the color scheme manually in the config, you can remove that (although you may still need it if your dark scheme is different from the default one. |
Oh, I forgot to remove the |
@hollunder, thank you for checking with all these examples! Looks good. I agree on the gradient, but I think it was tweaked in wxwidgets to increase contrast, as you said. It also depends on the background color, so may be too strong when the color is close to 0,0,0. |
Oh, another thing I noticed just now. There is a very weird halo-like effect on the right side of the editor. It is very noticeable on HighContrastInverse but also visible with the other dark schemes. Hard to imagine that it's intentional. I wonder how I didn't notice this earlier... |
Do you have a screenshot? I haven't seen this one and can't image what it would be outside of the main frame. |
Very interesting; not sure what to say or where it's coming from. This is the first time I see this. It does seem to be limited to just that window. It could be some sort of accessibility option, but can't confirm, as I'm not sure what could be triggering it. Do "older" versions of the IDE (like the master branch) show it with the same color scheme? |
Agree on the tooltip color. This should already be fixed in |
No, this screenshot is from upgrade-binaries-190d. |
|
Strange about the tooltip. I do see it colored according to the current color scheme. I'll check on Linux. |
@hollunder, thank you very much for the update! Don't hesitate to add a comment to this ticket if you figure out what's going on with the halo or have some additional details. |
This has been implemented as part of the changes in #999 that have been merged. |
I just update ZBS on my Ubunty 18.04 and got the same |
@moteus, I don't think so, as it doesn't seem to be controlled from the IDE or Scintilla. I included an answer from Scintilla author to my question in the earlier comment (#1024 (comment)). Does it only happen on the dark background or do you see it with the default color scheme as well? |
I see the same on all themes. But it noticeable only on dark one. With the light background it almost not seen. |
Am i getting it right that wx should be patched? Otherwise tabs labels are unreadable? |
@ildar, no, I applied a patch to wxwidgets that is supposed to fix the contrast on tab labels with a dark color scheme. Just to confirm, you are using v1.90, right? If you see low contrast on tab labels with the dark mode selected, can you post a screenshot? |
I'm sure everything is great with ZBS bundle. But i use system binaries.
So i wanted to understand the way to fix it:
1. Is there a patch for Lua sources OR
2. It's done with patching WX sources OR
3. I need to upgrade to 3.1.3 OR
4. 3 and 2 together?
Thanks
|
This should be sufficient. Unfortunately odd version number is a "dev" version, so may not be available as a system binary. You can definitely take my patch and apply it yourself, but it can be a bit messy, as the changes were in several PRs/updates. See this ticket for the discussion and all related patches: https://trac.wxwidgets.org/ticket/18601 Another problem with 3.1.3 was that there were several serious defects that were fixed shortly after it was released and incorporated into ZBS binaries (the IDE reports 3.1.4 as the version if you check the About screen). So, if you have a choice, I'd recommend building from sources in pkulchenko/wxWidgets instead of wxWidgets/wxWidgets. I don't remember the nature of the defects, but can dig it up if you are interested. |
Regarding halo effect. I turn it off using this answer |
@moteus, great; thank you for the update! I suspect it had something to do with GTK settings, so it's good to have a confirmation. Just in case, here is the solution:
|
On Fri, Apr 17, 2020 at 12:26 PM Paul Kulchenko wrote:
I need to upgrade to 3.1.3
This should be sufficient.
I just found it's not.
ZBS About page: Built with wxWidgets 3.1.3, wxLua 3.0.0.8, Scintilla
3.7.2
Testing showed:
1. Tab labels are dark
2. Text scaling factor is not considered
3. Autoswitching to the dark theme works.
|
@ildar, just to confirm, these are the libraries your built, right? Does 1 and 2 work with the ones included with the IDE (3 works in both places)? I think 1 was included after 3.1.3 was released and 2 is probably result of a bug in wxwidgets that I mentioned (that also got resolved shortly after the release was made). That's why I suggested building from pkulchenko/wxwidgets master branch, as it includes those changes on top of 3.1.3 (and will report the version as 3.1.4). You can at least check the last commit there, as it will have all those fixes already included. |
You got it all right. Thank you
|
Thanks, I can confirm this works with the official zbstudio build.
overshoot.top,
overshoot.right,
overshoot.bottom,
overshoot.left,
undershoot.top,
undershoot.right,
undershoot.bottom,
undershoot.left
{
background: none;
} |
@cata0309, it's not overshoot; it's the currently selected tabart in the IDE. You may switch to a different one (that doesn't have the gradient) by adding the following to the config: |
Could you be more specific ? In what file do I need to edit? I am new to this IDE and I am trying to find my way on mastering it |
got it ! It was |
That's not the place, as this file will be overwritten upon upgrade. See the Configuration section in the documentation: https://studio.zerobrane.com/doc-configuration#system-wide-configuration
These are set based on the system colors, but there is a way to change the default. Adding something like this to the config will change the tab background to Blue and active tab to Green: local tabart = wxaui.wxAuiSimpleTabArt()
tabart:SetColour(wx.wxColour(0, 0, 255))
tabart:SetActiveColour(wx.wxColour(0, 255, 0))
getmetatable(wxaui.wxAuiGenericTabArt).__call = function() return tabart end You can also change the fonts according to the documentation here: https://docs.wxwidgets.org/trunk/classwx_aui_tab_art.html |
I think you should see some improvement soon. See wxWidgets/wxWidgets#1950 and tell me if you like it. |
What does |
@mimi89999, the change you are proposing is not relevant to what @cata0309 is discussing, as it doesn't change the background. It's only supposed to change the color of text on tabs (and it doesn't work correctly when the dark/light scheme is switched, as commented in the ticket). If anything, what's being discussed in https://trac.wxwidgets.org/ticket/18812 may address @cata0309's concern. I'm not sure when it's going to be implemented and integrated. |
I hope that the PR will be merged in the following days. https://trac.wxwidgets.org/wiki/Roadmap says we plan to release one last 3.1.4 release in 3.1.x series in May or June 2020
No. It changes the color of the background behind tabs as can be clearly seen on the screenshots. |
But this is only for the wxwidgets component; you'll have to recompile the binaries for the IDE itself to get the update.
It does, but it's not part of this issue that we are discussing; the main issue was that the text was not visible on tabs, which has already been addressed. And this particular change (with the background) was done intentionally, for the reasons I outlined in my comments for https://trac.wxwidgets.org/ticket/18812. I don't mind changing this (as I commented in the ticket), but I don't think your proposal is the way to go, as it has some deficiencies that have already been noted in the ticket. |
Hi Paul,
I just noticed something weird. Have a look at these screenshots.
The second one where it's just 1.80 is how I'd expect it to look. This one was built using this script: zerobrane-studio.
They all use the same wxgtk/wxlua (my build from git).
What's really weird is that it seems to me that only the inner parts of zbstudio are so ugly while the rest looks like it is adhering to the gtk2 theme I have set.
The text was updated successfully, but these errors were encountered: