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

theming: Give Clutter.Color priority over Cogl.Color #2308

Merged
merged 1 commit into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion appIconIndicators.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ class RunningIndicatorDots extends RunningIndicatorBase {
const {settings} = Docking.DockManager;
if (!settings.applyCustomTheme) {
// Adjust for the backlit case
const Color = Cogl.Color ?? Clutter.Color;
const Color = Clutter.Color ?? Cogl.Color;

if (settings.unityBacklitItems) {
// Use dominant color for dots too if the backlit is enables
Expand Down
2 changes: 1 addition & 1 deletion theming.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export class ThemeManager {

({backgroundColor} = settings);
// backgroundColor is a string like rgb(0,0,0)
const Color = Cogl.Color ?? Clutter.Color;
const Color = Clutter.Color ?? Cogl.Color;
const [ret, color] = Color.from_string(backgroundColor);
if (!ret) {
logError(new Error(`${backgroundColor} is not a valid color string`));
Expand Down