mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-10-17 10:55:06 +00:00
- Implemented themes with LSS: material, material mono - Implemented grid-based navigation - Added new Launcher - Updated Appearance app to add theme configuration - Updated various apps to improve UX/UI - Added LVGL widgets: cards, badges, chips, icon buttons - Added support for round/rounded displays - Added the concept of insets to LVGL and implemented it in toolbar + statusbar - Terminal app now hides toolbar by default, but tapping the terminal toggles visibility - File browsing now opens the configured user-data location by default - Added missing licenses to subprojects - Updated README.md screenshots and intro text
13 lines
492 B
C
13 lines
492 B
C
// SPDX-License-Identifier: Apache-2.0
|
|
#pragma once
|
|
|
|
#include <lvgl/insets.h>
|
|
|
|
#include <tactility/drivers/display.h>
|
|
|
|
/** Calculates the insets of a display with the given shape and resolution */
|
|
LvglInsets lvgl_insets_calculate(const DisplayShape& shape, int32_t width, int32_t height);
|
|
|
|
/** Calculates the horizontal margin of a row of a display with the given shape and resolution */
|
|
int32_t lvgl_insets_calculate_row(const DisplayShape& shape, int32_t width, int32_t height, int32_t y);
|