mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +00:00
f7e034d4b2
Previously, Frames could set both these properties along with a thickness to confusing effect: Most shapes of the same shadowing only differentiated at a thickness >= 2, and some not at all. This led to a lot of creative but ultimately superfluous choices in the code. Instead let's streamline our options, automate thickness, and get the right look without so much guesswork. Plain shadowing has been consolidated into a single Plain style, and 0 thickness can be had by setting style to NoFrame.
40 lines
855 B
Text
40 lines
855 B
Text
@GUI::Widget {
|
|
layout: @GUI::VerticalBoxLayout {
|
|
spacing: 2
|
|
}
|
|
|
|
@GUI::ToolbarContainer {
|
|
name: "toolbar_container"
|
|
|
|
@GUI::Toolbar {
|
|
name: "toolbar"
|
|
}
|
|
}
|
|
|
|
@GUI::Frame {
|
|
name: "webdriver_banner"
|
|
style: "SunkenPanel"
|
|
preferred_height: "shrink"
|
|
foreground_role: "TooltipText"
|
|
background_role: "Tooltip"
|
|
fill_with_background_color: true
|
|
visible: false
|
|
layout: @GUI::HorizontalBoxLayout {
|
|
margins: [0, 4]
|
|
}
|
|
|
|
@GUI::Label {
|
|
text: "This Browser window is controlled by WebDriver."
|
|
text_alignment: "CenterLeft"
|
|
}
|
|
}
|
|
|
|
@GUI::Widget {
|
|
name: "webview_container"
|
|
layout: @GUI::VerticalBoxLayout {}
|
|
}
|
|
|
|
@GUI::Statusbar {
|
|
name: "statusbar"
|
|
}
|
|
}
|