Skip to content

Commit

Permalink
power-dialog: Remove style class changes and make this dialog behave …
Browse files Browse the repository at this point in the history
…more like the Polkit dialog (#381)

This fixes the case where themes that don't style the dialog end up having a transparent background, making it very hard to see and use the dialog.

Signed-off-by: Evan Maddock <[email protected]>
  • Loading branch information
EbonJaeger committed Jul 6, 2023
1 parent e11307d commit 15bedbd
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/dialogs/power/window.vala
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,15 @@ namespace Budgie {
Budgie.ThemeManager? theme_manager = null;

construct {
maximize(); // Try to prevent the dialog window from losing focus
set_keep_above(true);
set_position(WindowPosition.CENTER);
set_position(WindowPosition.CENTER_ALWAYS);

var visual = screen.get_rgba_visual();
if (visual != null) {
set_visual(visual);
}

get_style_context().add_class("budgie-power-dialog");
get_style_context().remove_class("background");

theme_manager = new Budgie.ThemeManager();

Expand All @@ -72,9 +70,6 @@ namespace Budgie {
valign = Align.CENTER
};

box.get_style_context().add_class("background");
box.get_style_context().add_class("drop-shadow");

var button_grid = new Grid() {
column_homogeneous = true,
row_homogeneous = true,
Expand Down

0 comments on commit 15bedbd

Please sign in to comment.