mirror of
https://github.com/LNH-team/pico-launcher.git
synced 2026-06-02 00:56:55 +02:00
Add touch input support, add fast scrolling support for coverflow display mode, fix use after free bug in banner list mode
This commit is contained in:
@@ -11,10 +11,9 @@ class IFontRepository;
|
||||
|
||||
class DisplaySettingsBottomSheetView : public BottomSheetView
|
||||
{
|
||||
public:
|
||||
DisplaySettingsBottomSheetView(DisplaySettingsViewModel* viewModel,
|
||||
const MaterialColorScheme* materialColorScheme, const IFontRepository* fontRepository);
|
||||
SHARED_ONLY(DisplaySettingsBottomSheetView)
|
||||
|
||||
public:
|
||||
void InitVram(const VramContext& vramContext) override;
|
||||
void Update() override;
|
||||
void Draw(GraphicsContext& graphicsContext) override;
|
||||
@@ -29,12 +28,15 @@ public:
|
||||
focusManager.Focus(_layoutOptions[0]);
|
||||
}
|
||||
|
||||
protected:
|
||||
void Close() override;
|
||||
|
||||
private:
|
||||
DisplaySettingsViewModel* _viewModel;
|
||||
|
||||
Label2DView _titleLabel;
|
||||
Label2DView _layoutLabel;
|
||||
Label2DView _sortingLabel;
|
||||
SharedPtr<Label2DView> _titleLabel;
|
||||
SharedPtr<Label2DView> _layoutLabel;
|
||||
SharedPtr<Label2DView> _sortingLabel;
|
||||
// LabelView _filtersLabel;
|
||||
|
||||
std::array<SharedPtr<IconButton2DView>, 4> _layoutOptions;
|
||||
@@ -47,6 +49,9 @@ private:
|
||||
SharedPtr<IconButton2DView> CreateSortOptionIconButton();
|
||||
// IconButton2DView CreateFilterOptionIconButton();
|
||||
|
||||
DisplaySettingsBottomSheetView(DisplaySettingsViewModel* viewModel,
|
||||
const MaterialColorScheme* materialColorScheme, const IFontRepository* fontRepository);
|
||||
|
||||
void UpdateLabels();
|
||||
|
||||
u32 LoadIcon(IVramManager& vramManager, const unsigned int* tiles, u32 tilesLength) const;
|
||||
|
||||
Reference in New Issue
Block a user