Dylan Katz
47f413c47f
Browser: Add missing tooltip to bookmark button
...
The tip will say "Add Bookmark" if not a bookmark and "Remove
Bookmark" if it is.
2020-04-30 08:52:21 +02:00
Andreas Kling
3cc31ff3f3
Browser: Make Ctrl+L select the location bar again
...
..by making sure the Tab actions are scoped to the Tab.
2020-04-28 20:36:08 +02:00
Andreas Kling
421619fe2f
Browser: Rejig the "on_load_counter_change" hook when switching tabs
...
This feels a little shoddy, but we need to make sure that updates end
up on the right statusbar (since there is one statusbar per tab.)
2020-04-25 17:27:55 +02:00
Andreas Kling
bd45b2b8d3
Browser: Share one BookmarksBarWidget between all Tabs
2020-04-25 17:20:23 +02:00
Andreas Kling
260e4049ff
Browser: Use the active tab's favicon as the window icon :^)
2020-04-24 22:47:53 +02:00
Andreas Kling
682f0ac93b
Browser: React to favicon notifications and put favicons in the tabs!
2020-04-24 22:28:05 +02:00
Andreas Kling
3fcfab4404
Browser: Move the "About" action to WindowActions
2020-04-24 20:50:06 +02:00
Andreas Kling
dfe8dea2ac
Browser: Remove padding from the main TabWidget
...
This makes the active tab "take over" the whole window UI, even though
it's actually inside a TabWidget.
2020-04-24 20:42:34 +02:00
Andreas Kling
9d8620f956
Browser: Add icons for the "new tab" and "close tab" actions
2020-04-24 20:42:34 +02:00
Andreas Kling
5c2bdbf27f
Browser+LibWeb: Open link in new tab on Ctrl+Click :^)
2020-04-24 14:43:56 +02:00
Andreas Kling
d5d8e87d56
Browser: Scope tab-specific actions to the tab itself
...
This makes LibGUI choose the correct action depending on which tab
is currently active (technically which tab is *focused*.)
Fixes #1935 .
2020-04-24 14:34:24 +02:00
Linus Groh
896decd4d5
Browser: Open links with target="_blank" in new tab
2020-04-24 14:34:11 +02:00
Linus Groh
061205b3b3
LibWeb: Pass link target to HtmlView's on_link_click callback
2020-04-24 14:34:11 +02:00
Andreas Kling
312501f309
Browser: Add "Close tab" action (Ctrl+W) :^)
...
Note that this is a little bit unreliable with the keyboard shortcut
since LibGUI can get confused about which Action it's supposed to use
as each Browser::Tab has its own "close tab" action. This will need
to be fixed in LibGUI.
2020-04-23 21:36:17 +02:00
Andreas Kling
476a4475e5
Browser: Add "New tab" action (Ctrl+T) :^)
...
This also introduces a WindowActions collection of actions that are not
specific to the currently open tab, but nevertheless part of its menus.
2020-04-23 21:28:25 +02:00
Andreas Kling
4e8b6e48fd
Browser: Start implementing tabbed browsing! :^)
...
This patch moves most of the Browser UI into a Tab class. The main UI
now mainly consists of a GUI::TabWidget that Tab objects are added to.
I'm going with the "tabs on top" style here, since I like how it makes
it feel like each tab has its own UI controls (which it actually does!)
2020-04-23 21:16:11 +02:00