Skip to content
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

[Sticky Scrolling] Fix separator color on windows #1967

Merged

Conversation

Christopher-Hermann
Copy link
Contributor

The separator in the sticky lines controls are drawn in a bad color on windows dark theme. With this change, the separator color is aligned with the theme.

Current coloring on windows:
Bildschirmfoto 2024-06-14 um 10 42 22

How it should look like:
Bildschirmfoto 2024-06-14 um 10 43 20

This is a follow up for #1894

@Christopher-Hermann
Copy link
Contributor Author

@Wittmaxi could you please check if this solves the issue on windows dark theme? If not, I need to set the correct background color for the separator.

@Christopher-Hermann Christopher-Hermann marked this pull request as draft June 14, 2024 08:45
@BeckerWdf
Copy link
Contributor

This is a follow up for #1894

You meant point "1" in #1894 (comment) ?

@Christopher-Hermann
Copy link
Contributor Author

You meant point "1" in #1894 (comment) ?

Yes, correct. Linking the comment is actually a good idea :)

Copy link
Contributor

github-actions bot commented Jun 14, 2024

Test Results

 1 815 files  ±0   1 815 suites  ±0   1h 35m 51s ⏱️ + 1m 36s
 7 668 tests ±0   7 439 ✅  - 1  228 💤 ±0  1 ❌ +1 
24 165 runs  ±0  23 415 ✅  - 1  749 💤 ±0  1 ❌ +1 

For more details on these failures, see this check.

Results for commit fc4da2d. ± Comparison against base commit 4888a8c.

♻️ This comment has been updated with latest results.

@Wittmaxi
Copy link
Contributor

Wittmaxi commented Jun 14, 2024

grafik

This is what I see, so no, I Would not consider this a fix. I tried to play around with different color values but I could not find a good fix.
I primarily use dark mode, so I would really appreciate you fixing this :) - thanks for putting in the work!

@Christopher-Hermann
Copy link
Contributor Author

I tried to play around with different color values but I could not find a good fix.

Could you try to set the color for both separator in StickyLinesControl line 180:
bottomSeparator.setBackground(Display.getDefault().getSystemColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));

@Wittmaxi
Copy link
Contributor

@Christopher-Hermann this is precisely what I tried (well, with another color) - it had no effect on the bars for me.

@Christopher-Hermann
Copy link
Contributor Author

@Christopher-Hermann this is precisely what I tried (well, with another color) - it had no effect on the bars for me.

Okay, damn you SWT :D Then I need to check on my virtual machine if I can reproduce the error to find a solution.
But it's really strange, I assume that other separators are colored correctly on Windows dark theme.

@Wittmaxi
Copy link
Contributor

@Christopher-Hermann Yes, I have had regular issues with SWT in the past - the dark theme seems to be especially prone to bugs and inconsistencies ;_;

@Christopher-Hermann Christopher-Hermann force-pushed the sticky_scrolling_color branch 3 times, most recently from b4ebb20 to 5d9641b Compare July 5, 2024 10:28
@Christopher-Hermann Christopher-Hermann marked this pull request as ready for review July 5, 2024 10:43
@Christopher-Hermann
Copy link
Contributor Author

Changed the implementation since I did not manage to color the separator on windows. Now a composite with background color is used:
Bildschirmfoto 2024-07-05 um 12 42 47

I tested on Windows and MacOS, both are working. But I would be grateful for further testers

@Christopher-Hermann Christopher-Hermann marked this pull request as draft July 5, 2024 11:21
Copy link
Contributor

@BeckerWdf BeckerWdf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on macOS: Looks good.

@BeckerWdf
Copy link
Contributor

"summary": "Eclipse Platform 4.33 M1 Promotion",

I thought that M1 is a milestone without freeze period. Am I wrong?

@vogella
Copy link
Contributor

vogella commented Jul 5, 2024

I think all our milestones are without freezes these days. @akurtakov can you update us on the latest state of freezing stuff?

@Christopher-Hermann
Copy link
Contributor Author

Tested on macOS: Looks good.

I found one more issue, the CSS Color Engine is overwriting the background color of the separator composite. I need to check how I can disable the CSS Engine for this composite.

@akurtakov
Copy link
Member

I think all our milestones are without freezes these days. @akurtakov can you update us on the latest state of freezing stuff?

Milestones don't have freezes but there is still the "promotion" day in the calendar (so everyone can see when it is) and the script checking it https://github.com/eclipse-platform/eclipse.platform.releng.aggregator/blob/42b625b2b0e971e1147761a7473e55170a3f5504/.github/workflows/verifyFreezePeriod.yml#L22 doesn't distinguish between M, RC and R promotion thus we end up with this freezes during M promotion days. It would be nice if someone enhances the script to not complain for milestone promotions.

@vogella
Copy link
Contributor

vogella commented Jul 5, 2024

I think all our milestones are without freezes these days. @akurtakov can you update us on the latest state of freezing stuff?

Milestones don't have freezes but there is still the "promotion" day in the calendar (so everyone can see when it is) and the script checking it https://github.com/eclipse-platform/eclipse.platform.releng.aggregator/blob/42b625b2b0e971e1147761a7473e55170a3f5504/.github/workflows/verifyFreezePeriod.yml#L22 doesn't distinguish between M, RC and R promotion thus we end up with this freezes during M promotion days. It would be nice if someone enhances the script to not complain for milestone promotions.

Create eclipse-platform/eclipse.platform.releng.aggregator#2170 for this.

@vogella
Copy link
Contributor

vogella commented Jul 5, 2024

Tested on macOS: Looks good.

I found one more issue, the CSS Color Engine is overwriting the background color of the separator composite. I need to check how I can disable the CSS Engine for this composite.

We have a css tag for this. See https://www.vogella.com/tutorials/Eclipse4CSS/article.html#ignore-certain-widgets-during-styling

@Christopher-Hermann
Copy link
Contributor Author

We have a css tag for this. See https://www.vogella.com/tutorials/Eclipse4CSS/article.html#ignore-certain-widgets-during-styling

Thanks a lot, this did the trick.

@Christopher-Hermann Christopher-Hermann marked this pull request as ready for review July 7, 2024 07:36
@vogella
Copy link
Contributor

vogella commented Jul 7, 2024

I think all our milestones are without freezes these days. @akurtakov can you update us on the latest state of freezing stuff?

Milestones don't have freezes but there is still the "promotion" day in the calendar (so everyone can see when it is) and the script checking it https://github.com/eclipse-platform/eclipse.platform.releng.aggregator/blob/42b625b2b0e971e1147761a7473e55170a3f5504/.github/workflows/verifyFreezePeriod.yml#L22 doesn't distinguish between M, RC and R promotion thus we end up with this freezes during M promotion days. It would be nice if someone enhances the script to not complain for milestone promotions.

This should be fixed now by @sratz

@Christopher-Hermann
Copy link
Contributor Author

The PR is ready for review/merging from my side.

@Christopher-Hermann Christopher-Hermann force-pushed the sticky_scrolling_color branch 2 times, most recently from ad10e6e to 0992f1d Compare July 9, 2024 14:27
@BeckerWdf
Copy link
Contributor

@Christopher-Hermann
Can you pls. rebase and resolve conflicts?

The separator in the sticky lines controls are drawn in a bad color on windows dark theme. With this change, the separator color is aligned with the theme.
@Christopher-Hermann
Copy link
Contributor Author

@Christopher-Hermann Can you pls. rebase and resolve conflicts?

Done.

@BeckerWdf
Copy link
Contributor

failed this as already known in #926

@BeckerWdf BeckerWdf merged commit 42f74bb into eclipse-platform:master Jul 12, 2024
14 of 16 checks passed
@Christopher-Hermann Christopher-Hermann deleted the sticky_scrolling_color branch July 12, 2024 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants