From 016eb1efda675e676e5cde655ba382a77b1552b5 Mon Sep 17 00:00:00 2001 From: Juuxel <6596629+Juuxel@users.noreply.github.com> Date: Thu, 24 Sep 2020 12:02:38 +0300 Subject: Tabs, card panels and showing/hiding widgets (#74) * Add beta API for hiding and showing widget peers, add default implementation for slots * Add WCardPanel * Tab thingies * Improve WPanel.toString * Fix tabs, add dark mode * Add box fillers * Tabs again * Tab go brrr * Revert modmenu changes * Fix card panels not initialising hidden widgets properly * Fix slots not being hidden when they should be * Things * Revert "Add box fillers" This reverts commit 1ea1bfbb * foo * revert more modmenu changes * Add tab titles and switch to a builder model for adding tabs * Document tab builders * Make hidden widgets release their focus * Replace outdated since tags with TAB_VERSION * Fix compilation of WTabPanel * TAB_VERSION => 3.0.0 * Add focusing support to tabs --- .../resources/assets/libgui/textures/widget/tab/focus.png | Bin 0 -> 633 bytes .../assets/libgui/textures/widget/tab/selected_dark.png | Bin 0 -> 629 bytes .../assets/libgui/textures/widget/tab/selected_light.png | Bin 0 -> 625 bytes .../assets/libgui/textures/widget/tab/unselected_dark.png | Bin 0 -> 628 bytes .../libgui/textures/widget/tab/unselected_light.png | Bin 0 -> 625 bytes 5 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 src/main/resources/assets/libgui/textures/widget/tab/focus.png create mode 100644 src/main/resources/assets/libgui/textures/widget/tab/selected_dark.png create mode 100644 src/main/resources/assets/libgui/textures/widget/tab/selected_light.png create mode 100644 src/main/resources/assets/libgui/textures/widget/tab/unselected_dark.png create mode 100644 src/main/resources/assets/libgui/textures/widget/tab/unselected_light.png (limited to 'src/main/resources/assets/libgui/textures/widget/tab') diff --git a/src/main/resources/assets/libgui/textures/widget/tab/focus.png b/src/main/resources/assets/libgui/textures/widget/tab/focus.png new file mode 100644 index 0000000..6d25685 Binary files /dev/null and b/src/main/resources/assets/libgui/textures/widget/tab/focus.png differ diff --git a/src/main/resources/assets/libgui/textures/widget/tab/selected_dark.png b/src/main/resources/assets/libgui/textures/widget/tab/selected_dark.png new file mode 100644 index 0000000..24ba766 Binary files /dev/null and b/src/main/resources/assets/libgui/textures/widget/tab/selected_dark.png differ diff --git a/src/main/resources/assets/libgui/textures/widget/tab/selected_light.png b/src/main/resources/assets/libgui/textures/widget/tab/selected_light.png new file mode 100644 index 0000000..ce7cbf2 Binary files /dev/null and b/src/main/resources/assets/libgui/textures/widget/tab/selected_light.png differ diff --git a/src/main/resources/assets/libgui/textures/widget/tab/unselected_dark.png b/src/main/resources/assets/libgui/textures/widget/tab/unselected_dark.png new file mode 100644 index 0000000..ae1d16e Binary files /dev/null and b/src/main/resources/assets/libgui/textures/widget/tab/unselected_dark.png differ diff --git a/src/main/resources/assets/libgui/textures/widget/tab/unselected_light.png b/src/main/resources/assets/libgui/textures/widget/tab/unselected_light.png new file mode 100644 index 0000000..21ab044 Binary files /dev/null and b/src/main/resources/assets/libgui/textures/widget/tab/unselected_light.png differ -- cgit