mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:07:46 +00:00
DisplaySettings: Set "open wallpaper" button style in GML
This commit is contained in:
parent
6041e48eaa
commit
ce7b09a3c5
2 changed files with 2 additions and 2 deletions
|
@ -121,7 +121,6 @@ void DisplaySettingsWidget::create_frame()
|
||||||
|
|
||||||
auto& button = *find_descendant_of_type_named<GUI::Button>("wallpaper_open_button");
|
auto& button = *find_descendant_of_type_named<GUI::Button>("wallpaper_open_button");
|
||||||
button.set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/open.png"));
|
button.set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/open.png"));
|
||||||
button.set_button_style(Gfx::ButtonStyle::CoolBar);
|
|
||||||
button.on_click = [this](auto) {
|
button.on_click = [this](auto) {
|
||||||
Optional<String> open_path = GUI::FilePicker::get_open_filepath(nullptr, "Select wallpaper from file system.");
|
Optional<String> open_path = GUI::FilePicker::get_open_filepath(nullptr, "Select wallpaper from file system.");
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,8 @@
|
||||||
|
|
||||||
@GUI::Button {
|
@GUI::Button {
|
||||||
name: "wallpaper_open_button"
|
name: "wallpaper_open_button"
|
||||||
tooltip: "Select Wallpaper from file system."
|
tooltip: "Select wallpaper from file system."
|
||||||
|
button_style: "CoolBar"
|
||||||
fixed_width: 22
|
fixed_width: 22
|
||||||
fixed_height: 22
|
fixed_height: 22
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue