summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/AbstractThemePreview.cpp
AgeCommit message (Collapse)Author
2022-08-25LibGfx+LibGUI+WindowServer+Apps+Demos: Replace ToolWindowsthankyouverycool
with the RenderAbove WindowMode. This mode will ensure child windows always draw above their parents, even when focus is lost. RenderAbove modals are automatically themed the same as the old ToolWindows. Fixes ToolWindows rendering above ALL normal windows, regardless of parent. We can't rely on WindowType to create these sort of effects because of WindowManager's strict display hierarchy.
2022-07-12Everywhere: Add sv suffix to strings relying on StringView(char const*)sin-ack
Each of these strings would previously rely on StringView's char const* constructor overload, which would call __builtin_strlen on the string. Since we now have operator ""sv, we can replace these with much simpler versions. This opens the door to being able to remove StringView(char const*). No functional changes.
2022-06-17LibGUI: Support setting an in memory theme in AbstractThemePreviewnetworkException
2022-05-07LibGUI: Add center_window_group_within() to AbstractThemePreviewMacDue
This method will center a group of window rects, within some bounds, accounting for the properties of the currently selected theme (i.e. border width, title height, etc).
2022-04-29LibGUI+ThemeEditor: Split preview-widget palette-change callbackSam Atkins
There are two different things in ThemeEditor that want to know when a palette changes: 1. The PreviewWidget subclass, so it can update its preview. 2. The ThemeEditor itself, so we know that the palette is modified. Using a protected virtual function for 1 means that we can do 2 without them fighting over the same on_palette_change callback.
2022-04-25LibGUI: Respect TitleButtonsIconOnly in AbstractThemePreviewMacDue
2022-04-02LibGUI+Applications: Move abstract ThemeEditor preview to LibGUIBen Maxwell
This allows most of the theme preview code to be reused by similar theme preview widgets.