Files
serenity/Userland/Libraries/LibGUI/DynamicWidgetContainerControls.gml
Andrew Kaster 08b69787e6 LibGUI+Applications: Rename Button::set_icon_from_{path,resource}
Rather than loading an absolute filepath in GML files, change the
setter for this property to use a resource path.

This results in a bunch of churn related to issue 22864, but does not
change any functionality.
2026-07-26 10:18:45 -04:00

37 lines
956 B
Plaintext

@GUI::DynamicWidgetContainerControls {
layout: @GUI::HorizontalBoxLayout {}
preferred_height: "shrink"
@GUI::LabelWithEventDispatcher {
name: "section_label"
text_alignment: "CenterLeft"
}
@GUI::Button {
name: "detach_button"
tooltip: "Detach"
button_style: "Coolbar"
preferred_width: "shrink"
preferred_height: "shrink"
icon_from_resource: "icons/16x16/detach.png"
}
@GUI::Button {
name: "collapse_button"
tooltip: "Collapse"
button_style: "Coolbar"
preferred_width: "shrink"
preferred_height: "shrink"
icon_from_resource: "icons/16x16/upward-triangle.png"
}
@GUI::Button {
name: "expand_button"
tooltip: "Expand"
button_style: "Coolbar"
preferred_width: "shrink"
preferred_height: "shrink"
icon_from_resource: "icons/16x16/downward-triangle.png"
}
}