From 5aa3eb05b77a9e6f44a8a71e5dc40b0ceba4db9d Mon Sep 17 00:00:00 2001 From: Pablo Curiel Date: Sun, 27 Jun 2021 14:54:27 -0400 Subject: [PATCH] Add subtle click animation and scrollbars. Also use DWARFv4 explicitly for debug ELFs. --- Makefile | 8 ++++---- include/focusable_item.hpp | 8 ++++++++ libs/borealis | 2 +- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index baf4410..e26afb0 100644 --- a/Makefile +++ b/Makefile @@ -77,7 +77,7 @@ USBHSFS_PATH := $(TOPDIR)/libs/libusbhsfs #--------------------------------------------------------------------------------- ARCH := -march=armv8-a+crc+crypto -mtune=cortex-a57 -mtp=soft -fPIE -CFLAGS := -g -Wall -Werror -O2 -ffunction-sections $(ARCH) $(DEFINES) $(INCLUDE) -D__SWITCH__ +CFLAGS := -g -gdwarf-4 -Wall -Werror -O2 -ffunction-sections $(ARCH) $(DEFINES) $(INCLUDE) -D__SWITCH__ CFLAGS += -DVERSION_MAJOR=${VERSION_MAJOR} -DVERSION_MINOR=${VERSION_MINOR} -DVERSION_MICRO=${VERSION_MICRO} CFLAGS += -DAPP_TITLE=\"${APP_TITLE}\" -DAPP_AUTHOR=\"${APP_AUTHOR}\" -DAPP_VERSION=\"${APP_VERSION}\" CFLAGS += -DGIT_BRANCH=\"${GIT_BRANCH}\" -DGIT_COMMIT=\"${GIT_COMMIT}\" -DGIT_REV=\"${GIT_REV}\" @@ -86,10 +86,10 @@ CFLAGS += `aarch64-none-elf-pkg-config zlib --cflags` CFLAGS += `aarch64-none-elf-pkg-config libxml-2.0 --cflags` #CFLAGS += `aarch64-none-elf-pkg-config json-c --cflags` -CXXFLAGS := $(CFLAGS) -std=c++20 -O2 -Wno-volatile -Wno-unused-parameter +CXXFLAGS := $(CFLAGS) -std=c++20 -Wno-volatile -Wno-unused-parameter -ASFLAGS := -g $(ARCH) -LDFLAGS := -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) +ASFLAGS := -g -gdwarf-4 $(ARCH) +LDFLAGS := -specs=$(DEVKITPRO)/libnx/switch.specs -g -gdwarf-4 $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lcurl -lmbedtls -lmbedx509 -lmbedcrypto -lxml2 -lz -lusbhsfs -lntfs-3g -llwext4 -lnx #LIBS += -ljson-c diff --git a/include/focusable_item.hpp b/include/focusable_item.hpp index 80bd1d4..0379400 100644 --- a/include/focusable_item.hpp +++ b/include/focusable_item.hpp @@ -40,6 +40,7 @@ namespace nxdt::views return this; } + void playClickAnimation(void) override; void onFocusGained(void) override; public: @@ -50,6 +51,13 @@ namespace nxdt::views } }; + template + void FocusableItem::playClickAnimation(void) + { + /* Play click animation. */ + if (this->highlight_view) brls::View::playClickAnimation(); + } + template void FocusableItem::onFocusGained(void) { diff --git a/libs/borealis b/libs/borealis index 194e08f..24aaf09 160000 --- a/libs/borealis +++ b/libs/borealis @@ -1 +1 @@ -Subproject commit 194e08f18614c46ea8bda54cbc64a256cb421b9d +Subproject commit 24aaf094be42c8910f486fce51e0701b34971f9e