mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:24:57 +00:00
LibGfx+Userland: Merge FrameShape and FrameShadow into FrameStyle
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.
This commit is contained in:
parent
4c9933bfb7
commit
f7e034d4b2
58 changed files with 148 additions and 208 deletions
|
@ -206,11 +206,10 @@ void BrowserWindow::build_menus()
|
|||
tab.m_toolbar_container->set_visible(!is_fullscreen);
|
||||
tab.m_statusbar->set_visible(!is_fullscreen);
|
||||
|
||||
if (is_fullscreen) {
|
||||
tab.view().set_frame_thickness(0);
|
||||
} else {
|
||||
tab.view().set_frame_thickness(2);
|
||||
}
|
||||
if (is_fullscreen)
|
||||
tab.view().set_frame_style(Gfx::FrameStyle::NoFrame);
|
||||
else
|
||||
tab.view().set_frame_style(Gfx::FrameStyle::SunkenContainer);
|
||||
},
|
||||
this));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue