-
Notifications
You must be signed in to change notification settings - Fork 261
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
Fixed interaction with custom shell themes #271
Conversation
cf61067
to
28607a6
Compare
@@ -29,7 +29,7 @@ export class Search { | |||
) { | |||
this.select_cb = select; | |||
this.dialog = new ModalDialog({ | |||
styleClass: "pop-shell-search", | |||
styleClass: "pop-shell-search modal-dialog", |
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.
I like that we're using existing classes where they make sense here.
src/search.ts
Outdated
@@ -170,13 +182,13 @@ export class Search { | |||
|
|||
let label = new St.Label({ | |||
text: title, | |||
styleClass: "pop-shell-search-label", | |||
styleClass: "pop-shell-search-label list-search-result-title", |
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.
Here (and the next one) also show good use of existing, supported style classes.
Pushed a copy of this branch into our repo for building/CI purposes. Please merge this PR instead of that one. |
28607a6
to
1fd33c8
Compare
@isantop Completed all your requests |
src/search.ts
Outdated
y_align: Clutter.ActorAlign.CENTER | ||
}); | ||
|
||
label.clutter_text.set_ellipsize(Pango.EllipsizeMode.END); | ||
|
||
let container = new widgets.Box({ styleClass: "pop-shell-search-element" }) | ||
let container = new widgets.Box({ styleClass: "pop-shell-search-element list-search-result" }) |
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.
This looks better in Pop and Adwaita, but in many themes it causes the text to become unreadable. I think the existing styling present for these widgets was fairly theme-agnostic and resulted in guaranteed-readable text.
ab56749
to
a232e6d
Compare
I addressed all your requests. While fixing the issues I noticed a bug with stylesheets only loading when the extension is initially loaded and fixed it. Also added detection for shell theme changes instead of relying on gtk theme changes, since they can be changed separately. |
a232e6d
to
bd65784
Compare
There's an issue with using custom styling, which is themes that style the shell widgets dark even on light variants (Adwaita, Adapta, Plata, Ant-Dracula, etc.) don't work well. I removed the |
When using `loadTheme` it merges the default GNOME theme with the style sheet passed into `setThemeStylesheet`. This change instead uses the existing theme and loads the pop style sheet on top of it (if a previous theme exists). Co-authored-by: Jun Bo Bi <jambonmcyeah@gmail.com>
bd65784
to
b202a13
Compare
The real solution to this problem is to implement search items using |
@mmstick Some notes about the implementation of the Launcher we might consider ☝️ |
@jambonmcyeah Can you post a screenshot of the issues you are seeing with the stock styling? I worked pretty hard to try and get the styling to be fairly theme-neutral while also looking good. |
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.
b6fab69
to
fa89e55
Compare
b815ab0
to
7854812
Compare
- Launcher uses shell theme, not application theme - Checking shell enables dark application theme with light shell theme Co-authored-by: Jun Bo Bi <jambonmcyeah@gmail.com>
7854812
to
b232b1a
Compare
c372d02
to
9d4271f
Compare
@pop-os/quality-assurance Testing branch for this is now |
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.
Looks fine from my end.
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.
I'll do some followup improvements to the code from here on. Thanks!
Issue: Pop Shell reverts the shell theme to the default shell theme on startup. New Behavior: Allow using custom themes with Pop Shell. Stop reverting custom themes back to the default theme. Fix all interactions with dark and light themes revolving around custom themes. Origin: #271 Closes #230, Closes #231
Issue: Pop Shell reverts the shell theme to the default shell theme on startup. New Behavior: Allow using custom themes with Pop Shell. Stop reverting custom themes back to the default theme. Fix all interactions with dark and light themes revolving around custom themes. Origin: #271 Closes #230, Closes #231
Issue: Pop Shell reverts the shell theme to the default shell theme on startup. New Behavior: Allow using custom themes with Pop Shell. Stop reverting custom themes back to the default theme. Fix all interactions with dark and light themes revolving around custom themes. Origin: #271 Closes #230, Closes #231
Issue: Pop Shell reverts the shell theme to the default shell theme on startup. New Behavior: Allow using custom themes with Pop Shell. Stop reverting custom themes back to the default theme. Fix all interactions with dark and light themes revolving around custom themes. Origin: #271 Closes #230, Closes #231
Issue: Pop Shell reverts the shell theme to the default shell theme on startup. New Behavior: Allow using custom themes with Pop Shell. Stop reverting custom themes back to the default theme. Fix all interactions with dark and light themes revolving around custom themes. Origin: #271 Closes #230, Closes #231
Combines my previous PR #269 with @scaryrawr 's PR #270
The reason for this is addressed in the comments on the comments in #270
Closes #231, Closes #230