Andreas Kling
638c6b7547
LibGUI: Fix an unsightly pixel glitch in bottom-side tabs
2020-08-24 00:05:40 +02:00
Andreas Kling
03c576acc5
LibGUI+LibGfx: Implement upside-down appearance for bottom-side tabs
...
GUI::TabWidget has long has a TabPosition::Bottom option, but we still
rendered the tab buttons the same as TabPosition::Top.
This patch implements a custom look for bottom-side tabs. I've done my
best to match the look of the top-side ones, but there might be some
improvements we can make here. :^)
2020-08-23 23:53:45 +02:00
Andreas Kling
e0b8b4ac67
LibCore+LibGUI: Switch to using AK::is and AK::downcast
2020-07-26 17:51:00 +02:00
Andreas Kling
116cf92156
LibGfx: Rename Rect,Point,Size => IntRect,IntPoint,IntSize
...
This fits nicer with FloatRect,FloatPoint,FloatSize and gives a much
better visual clue about what type of metric is being used.
2020-06-10 10:59:04 +02:00
FalseHonesty
bf2e6325a4
LibGUI: Add hook when a context menu is requested on a tab
2020-05-21 21:53:17 +02:00
Linus Groh
4ab4de7810
LibGUI: Add ability to hide GUI::TabWidget's tab bar
2020-05-19 17:42:48 +02:00
FalseHonesty
bb6258229a
LibGUI: Add hook when a tab is middle clicked
2020-05-09 23:54:20 +02:00
Andreas Kling
8fc6ff94fe
LibGUI: Scale TabWidget tabs according to available space
...
In TabWidgets with the "uniform tabs" mode on, we will now scale tabs
between a minimum and maximum size, distributing the available space.
Partially addresses #1971 .
2020-04-30 09:28:36 +02:00
Andreas Kling
f2cdef5c47
LibGUI: Cycle through TabWidget tabs with Ctrl+Tab / Ctrl+Shift+Tab
...
Fixes #2022 .
2020-04-30 09:04:39 +02:00
Andreas Kling
37918d4141
Revert "LibGUI: Use bold font for the currently active TabWidget tab"
...
This reverts commit 4d8206f7c2
.
This was not visually pleasant. We'll have to come up with some better
way to distinguish the active tab in Browser.
2020-04-26 17:46:16 +02:00
Andreas Kling
0f4fa43541
LibGUI: Tweak TabWidget tab icon placement
2020-04-24 22:49:57 +02:00
Andreas Kling
4d8206f7c2
LibGUI: Use bold font for the currently active TabWidget tab
2020-04-24 22:44:36 +02:00
Andreas Kling
d6bbf12b7c
LibGUI: Add "uniform tabs" mode to TabWidget (all tabs have same width)
...
...and enable this in the main Browser UI. :^)
2020-04-24 22:36:25 +02:00
Andreas Kling
53cb5325ee
LibGUI: Allow TabWidget tabs to have icons and custom text alignment
2020-04-24 22:27:46 +02:00
Andreas Kling
1587b53001
LibGUI: Allow overriding the padding inside a TabWidget
2020-04-24 20:42:34 +02:00
Andreas Kling
5d88022252
LibGUI: When removing a TabWidget tab, activate the next tab
2020-04-24 17:10:59 +02:00
Andreas Kling
a2bdcfabc9
LibGUI: Grant focus when activating a new stack/tab child widget
...
This makes opening a tab actually focus the opened tab.
2020-04-24 14:34:24 +02:00
Andreas Kling
4087e3cfb9
LibGUI: Add TabWidget functions to activate next/previous tab
2020-04-23 21:43:08 +02:00
Andreas Kling
ee7e7e6d55
LibGUI: Add TabWidget::set_tab_title(Widget&, StringView)
...
This lets you change the title of a tab after creating it.
2020-04-23 21:13:47 +02:00
Oriko
12c7375cdd
LibGUI: Add remove_tab and on_change to TabWidget
2020-04-06 09:01:42 +02:00
Andreas Kling
ceec1a7d38
AK: Make Vector use size_t for its size and capacity
2020-02-25 14:52:35 +01:00
Andreas Kling
6c5100b644
LibGUI: Add helper for constructing new TabWidget tabs
...
This patch adds the following convenience helper:
auto tab_widget = GUI::TabWidget::construct();
auto my_widget = tab_widget->add_tab<GUI::Widget>("My tab", ...);
The above is equivalent to:
auto tab_widget = GUI::TabWidget::construct();
auto my_widget = GUI::Widget::construct(...);
tab_widget->add_widget("My tab", my_widget);
2020-02-23 12:27:53 +01:00
Andreas Kling
c5d913970a
LibGUI: Remove parent parameter to GUI::Widget constructor
2020-02-23 12:27:53 +01:00
Andreas Kling
34c7322d77
LibGUI: Remove some header dependencies from Widget.h
2020-02-14 23:53:11 +01:00
Andreas Kling
6a9cc66b97
LibGUI: Remove leading G from filenames
2020-02-06 20:33:02 +01:00