Bug 235884 - [GTK][WPE] Update widget style to match libadwaita
Summary: [GTK][WPE] Update widget style to match libadwaita
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Alice Mikhaylenko
URL:
Keywords:
: 236119 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-01-31 03:21 PST by Alice Mikhaylenko
Modified: 2022-03-25 16:15 PDT (History)
10 users (show)

See Also:


Attachments
Patch (46.13 KB, patch)
2022-01-31 03:23 PST, Alice Mikhaylenko
no flags Details | Formatted Diff | Diff
Screenshot (59.69 KB, image/png)
2022-01-31 03:23 PST, Alice Mikhaylenko
no flags Details
Patch (48.61 KB, patch)
2022-01-31 03:58 PST, Alice Mikhaylenko
no flags Details | Formatted Diff | Diff
Patch (48.53 KB, patch)
2022-01-31 04:06 PST, Alice Mikhaylenko
no flags Details | Formatted Diff | Diff
Patch (48.53 KB, patch)
2022-02-07 06:21 PST, Alice Mikhaylenko
no flags Details | Formatted Diff | Diff
Patch (48.59 KB, patch)
2022-03-24 14:49 PDT, Alice Mikhaylenko
no flags Details | Formatted Diff | Diff
The linked test, an image without this patch but with --new-baseline (20.46 KB, image/png)
2022-03-25 03:49 PDT, Alice Mikhaylenko
no flags Details
Patch (3.96 MB, patch)
2022-03-25 05:54 PDT, Alice Mikhaylenko
no flags Details | Formatted Diff | Diff
Patch (4.01 MB, patch)
2022-03-25 07:40 PDT, Alice Mikhaylenko
no flags Details | Formatted Diff | Diff
Patch (4.01 MB, patch)
2022-03-25 09:26 PDT, Alice Mikhaylenko
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alice Mikhaylenko 2022-01-31 03:21:10 PST
See the patch.
Comment 1 Alice Mikhaylenko 2022-01-31 03:23:13 PST
Created attachment 450396 [details]
Patch
Comment 2 Alice Mikhaylenko 2022-01-31 03:23:40 PST
Created attachment 450397 [details]
Screenshot
Comment 3 Alice Mikhaylenko 2022-01-31 03:24:51 PST
Note the button and entry style doesn't really match libadwaita, it's just using new colors and borders. The actual style looks similar to the progress bar, but I'm hesitant to use it here since it may not be well visible depending on the surroundings.
Comment 4 Alice Mikhaylenko 2022-01-31 03:58:55 PST
Created attachment 450400 [details]
Patch
Comment 5 Carlos Garcia Campos 2022-01-31 04:03:54 PST
Comment on attachment 450400 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=450400&action=review

> Source/WebCore/platform/adwaita/ScrollbarThemeAdwaita.cpp:269
> +    /*if (scrollbar.hoveredPart() == NoPart && usesOverlayScrollbars())
>          graphicsContext.setFillColor(overlayThumbColor);
> -    else if (scrollbar.pressedPart() == ThumbPart)
> -        graphicsContext.setFillColor(static_cast<ThemeAdwaita&>(Theme::singleton()).activeSelectionBackgroundColor());
> +    else*/ if (scrollbar.pressedPart() == ThumbPart)

What's this commented code?
Comment 6 Alice Mikhaylenko 2022-01-31 04:05:34 PST
My bad, forgot to remove that.
Comment 7 Alice Mikhaylenko 2022-01-31 04:06:10 PST
Created attachment 450401 [details]
Patch
Comment 8 Alice Mikhaylenko 2022-01-31 04:08:22 PST
I expect this will need test updates, waiting for EWS to finish to check as it will take forever to run all tests locally.
Comment 9 Alice Mikhaylenko 2022-02-04 00:51:26 PST
*** Bug 236119 has been marked as a duplicate of this bug. ***
Comment 10 Alice Mikhaylenko 2022-02-07 06:21:10 PST
Created attachment 451085 [details]
Patch
Comment 11 Adrian Perez 2022-03-17 02:07:38 PDT
Comment on attachment 451085 [details]
Patch

Nice, thanks for all the pixel-pushing! 🎨️
Comment 12 Alice Mikhaylenko 2022-03-24 11:25:47 PDT
Hm, not sure what's happening with EWS. Maybe sometihng expired and I need to reupload the patch?
Comment 13 Adrian Perez 2022-03-24 14:18:13 PDT
(In reply to Alexander Mikhaylenko from comment #12)
> Hm, not sure what's happening with EWS. Maybe sometihng expired and I need
> to reupload the patch?

The package with the built WebKit is no longer available. You can re-upload
the patch after setting the reviewer and let the EWS build it again =)
Comment 14 Alice Mikhaylenko 2022-03-24 14:49:40 PDT
Created attachment 455687 [details]
Patch
Comment 15 Alice Mikhaylenko 2022-03-25 03:49:13 PDT
Created attachment 455743 [details]
The linked test, an image without this patch but with --new-baseline

Some tests have extra changes like slight dimension differences - e.g. https://ews-build.s3-us-west-2.amazonaws.com/GTK-WK2-Tests-EWS/455687-12354/retries/tables/mozilla/bugs/bug7342-diffs.html

However, it looks like those differences are preexisting and the test only didn't fail because the changes were too small - and with the different button color it's enough to push it over the line. See screenshot for an example. So I'm just blindly updating those tests then, I was trying to figure out what could cause this change...
Comment 16 Alice Mikhaylenko 2022-03-25 05:54:57 PDT
Created attachment 455748 [details]
Patch
Comment 17 Alice Mikhaylenko 2022-03-25 05:55:34 PDT
Fixed some tests, left out the clearly preexisting ones. Let's see what EWS says...
Comment 18 Alice Mikhaylenko 2022-03-25 07:40:46 PDT
Created attachment 455759 [details]
Patch
Comment 19 Alice Mikhaylenko 2022-03-25 09:26:29 PDT
Created attachment 455771 [details]
Patch
Comment 20 EWS 2022-03-25 16:15:39 PDT
Committed r291901 (248894@main): <https://commits.webkit.org/248894@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 455771 [details].