Compare commits

...
22 Commits
Author SHA1 Message Date
waozi c679b11b73 improve github action caching 2026-06-21 01:28:57 -03:00
waozi 82ccb092c2 improve edit icon 2026-06-21 01:16:41 -03:00
waozi 8bbbfe0be0 add new first time user guid 2026-06-21 01:08:35 -03:00
waozi ee89a9623a add basic transit]ion between screens 2026-06-21 00:22:03 -03:00
waozi df91739754 fix new hhabit creation 2026-06-21 00:01:55 -03:00
waozi 5fadbcacea improve workflow 2026-06-20 23:49:08 -03:00
waozi c0912d29f0 rm click 2026-06-20 23:35:31 -03:00
waozi a6648a51d1 fix ci 2026-06-20 19:52:44 -03:00
waozi 37cee8b105 ui improvements 2026-06-20 19:38:14 -03:00
waozi c766b84796 improve edit habit 2026-06-20 19:03:04 -03:00
waozi 663ad10fba refactor and bug fixes 2026-06-20 18:34:58 -03:00
waozi 1072d38690 sidebar + bottom nav 2026-06-20 18:18:27 -03:00
waozi fd1ac9403b add version 2026-06-20 16:24:56 -03:00
waozi 43286f23c9 fix line wrap 2026-06-20 16:20:47 -03:00
waozi c2f63faee6 fix locales 2026-06-20 16:09:34 -03:00
waozi 081357578b update screenshots 2026-06-20 14:43:58 -03:00
waozi a047d036f3 polish 2026-06-20 14:04:54 -03:00
waozi cdd14267f2 better abstractions 2026-06-20 11:24:25 -03:00
waozi 6ab4bd6e61 refactor 2026-06-20 10:48:11 -03:00
waozi 376c2ee40b split storage file 2026-06-20 10:31:34 -03:00
waozi 779699ac43 improve breath button positioning 2026-06-20 03:41:33 -03:00
waozi ce01d33aac improve meta and add .click 2026-06-20 03:31:01 -03:00
149 changed files with 15030 additions and 5951 deletions

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
build-essential
zlib1g-dev
+3
View File
@@ -0,0 +1,3 @@
build-essential
zlib1g-dev
zip
+5
View File
@@ -0,0 +1,5 @@
build-essential
gcc-mingw-w64-i686-win32
gcc-mingw-w64-x86-64-win32
zlib1g-dev
zip
+68 -1
View File
@@ -20,6 +20,8 @@ jobs:
test:
name: Test
runs-on: ubuntu-latest
env:
APT_CACHE_DIR: /tmp/apt-cache
steps:
- name: Checkout Repository
@@ -28,10 +30,75 @@ jobs:
submodules: recursive
fetch-depth: 0
- name: Cache Test apt packages
uses: actions/cache@v4
with:
path: ${{ env.APT_CACHE_DIR }}
key: test-apt-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.github/apt/test-packages.txt') }}
restore-keys: |
test-apt-${{ runner.os }}-${{ runner.arch }}-
- name: Install Test Dependencies
run: |
set -euo pipefail
mapfile -t packages < .github/apt/test-packages.txt
mkdir -p "$APT_CACHE_DIR/partial"
sudo apt-get update
sudo apt-get install -y build-essential zlib1g-dev
sudo apt-get \
-o Dir::Cache::archives="$APT_CACHE_DIR" \
install -y "${packages[@]}"
sudo chown -R "$USER:$USER" "$APT_CACHE_DIR"
- name: Run Tests
run: make test
build-chrome-extension:
name: Build Chrome Extension
runs-on: ubuntu-latest
needs: test
env:
APT_CACHE_DIR: /tmp/apt-cache
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Cache Web apt packages
uses: actions/cache@v4
with:
path: ${{ env.APT_CACHE_DIR }}
key: web-apt-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.github/apt/web-packages.txt') }}
restore-keys: |
web-apt-${{ runner.os }}-${{ runner.arch }}-
- name: Install Web Dependencies
run: |
set -euo pipefail
mapfile -t packages < .github/apt/web-packages.txt
mkdir -p "$APT_CACHE_DIR/partial"
sudo apt-get update
sudo apt-get \
-o Dir::Cache::archives="$APT_CACHE_DIR" \
install -y "${packages[@]}"
sudo chown -R "$USER:$USER" "$APT_CACHE_DIR"
- name: Set up Emscripten
run: |
set -euo pipefail
git clone --depth 1 https://github.com/emscripten-core/emsdk.git "$HOME/emsdk"
"$HOME/emsdk/emsdk" install latest
"$HOME/emsdk/emsdk" activate latest
echo "EMSDK=$HOME/emsdk" >> "$GITHUB_ENV"
echo "EM_CONFIG=$HOME/emsdk/.emscripten" >> "$GITHUB_ENV"
echo "$HOME/emsdk" >> "$GITHUB_PATH"
echo "$HOME/emsdk/upstream/emscripten" >> "$GITHUB_PATH"
- name: Build Chrome Extension ZIP
run: |
set -euo pipefail
make package-unpackaged-assets
make chrome-web-store
test -f build/dist/inbe-chrome-web-store.zip
+144 -8
View File
@@ -17,6 +17,8 @@ jobs:
test:
name: Test
runs-on: ubuntu-latest
env:
APT_CACHE_DIR: /tmp/apt-cache
steps:
- name: Checkout Repository
@@ -25,10 +27,24 @@ jobs:
submodules: recursive
fetch-depth: 0
- name: Cache Test apt packages
uses: actions/cache@v4
with:
path: ${{ env.APT_CACHE_DIR }}
key: test-apt-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.github/apt/test-packages.txt') }}
restore-keys: |
test-apt-${{ runner.os }}-${{ runner.arch }}-
- name: Install Test Dependencies
run: |
set -euo pipefail
mapfile -t packages < .github/apt/test-packages.txt
mkdir -p "$APT_CACHE_DIR/partial"
sudo apt-get update
sudo apt-get install -y build-essential zlib1g-dev
sudo apt-get \
-o Dir::Cache::archives="$APT_CACHE_DIR" \
install -y "${packages[@]}"
sudo chown -R "$USER:$USER" "$APT_CACHE_DIR"
- name: Run Tests
run: make test
@@ -37,6 +53,8 @@ jobs:
name: Build Web
runs-on: ubuntu-latest
needs: test
env:
APT_CACHE_DIR: /tmp/apt-cache
steps:
- name: Checkout Repository
@@ -45,10 +63,24 @@ jobs:
submodules: recursive
fetch-depth: 0
- name: Cache Web apt packages
uses: actions/cache@v4
with:
path: ${{ env.APT_CACHE_DIR }}
key: web-apt-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.github/apt/web-packages.txt') }}
restore-keys: |
web-apt-${{ runner.os }}-${{ runner.arch }}-
- name: Install Web Dependencies
run: |
set -euo pipefail
mapfile -t packages < .github/apt/web-packages.txt
mkdir -p "$APT_CACHE_DIR/partial"
sudo apt-get update
sudo apt-get install -y build-essential zlib1g-dev zip
sudo apt-get \
-o Dir::Cache::archives="$APT_CACHE_DIR" \
install -y "${packages[@]}"
sudo chown -R "$USER:$USER" "$APT_CACHE_DIR"
- name: Set up Emscripten
run: |
@@ -76,6 +108,65 @@ jobs:
path: build/release/web/*
if-no-files-found: error
build-chrome-extension:
name: Build Chrome Extension
runs-on: ubuntu-latest
needs: test
env:
APT_CACHE_DIR: /tmp/apt-cache
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Cache Web apt packages
uses: actions/cache@v4
with:
path: ${{ env.APT_CACHE_DIR }}
key: web-apt-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.github/apt/web-packages.txt') }}
restore-keys: |
web-apt-${{ runner.os }}-${{ runner.arch }}-
- name: Install Web Dependencies
run: |
set -euo pipefail
mapfile -t packages < .github/apt/web-packages.txt
mkdir -p "$APT_CACHE_DIR/partial"
sudo apt-get update
sudo apt-get \
-o Dir::Cache::archives="$APT_CACHE_DIR" \
install -y "${packages[@]}"
sudo chown -R "$USER:$USER" "$APT_CACHE_DIR"
- name: Set up Emscripten
run: |
set -euo pipefail
git clone --depth 1 https://github.com/emscripten-core/emsdk.git "$HOME/emsdk"
"$HOME/emsdk/emsdk" install latest
"$HOME/emsdk/emsdk" activate latest
echo "EMSDK=$HOME/emsdk" >> "$GITHUB_ENV"
echo "EM_CONFIG=$HOME/emsdk/.emscripten" >> "$GITHUB_ENV"
echo "$HOME/emsdk" >> "$GITHUB_PATH"
echo "$HOME/emsdk/upstream/emscripten" >> "$GITHUB_PATH"
- name: Build Chrome Extension ZIP
run: |
set -euo pipefail
make package-unpackaged-assets
make chrome-web-store
mkdir -p build/release/chrome-web-store
cp build/dist/inbe-chrome-web-store.zip build/release/chrome-web-store/
- name: Upload Chrome Extension Artifact
uses: actions/upload-artifact@v4
with:
name: release-chrome-web-store
path: build/release/chrome-web-store/*
if-no-files-found: error
build-linux:
name: Build Linux
runs-on: ubuntu-latest
@@ -149,6 +240,8 @@ jobs:
name: Build Windows
runs-on: ubuntu-latest
needs: test
env:
APT_CACHE_DIR: /tmp/apt-cache
steps:
- name: Checkout Repository
@@ -157,15 +250,34 @@ jobs:
submodules: recursive
fetch-depth: 0
- name: Cache Windows apt packages
uses: actions/cache@v4
with:
path: ${{ env.APT_CACHE_DIR }}
key: windows-apt-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.github/apt/windows-packages.txt') }}
restore-keys: |
windows-apt-${{ runner.os }}-${{ runner.arch }}-
- name: Cache Windows vendor builds
uses: actions/cache@v4
with:
path: |
vendor-builds/windows
vendor-builds/sqlite
key: windows-vendor-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile', 'vendor/raylib/src/**', 'vendor/curl/**', 'vendor/sqlite/**') }}
restore-keys: |
windows-vendor-${{ runner.os }}-${{ runner.arch }}-
- name: Install Windows Dependencies
run: |
set -euo pipefail
mapfile -t packages < .github/apt/windows-packages.txt
mkdir -p "$APT_CACHE_DIR/partial"
sudo apt-get update
sudo apt-get install -y \
build-essential \
gcc-mingw-w64-i686-win32 \
gcc-mingw-w64-x86-64-win32 \
zlib1g-dev \
zip
sudo apt-get \
-o Dir::Cache::archives="$APT_CACHE_DIR" \
install -y "${packages[@]}"
sudo chown -R "$USER:$USER" "$APT_CACHE_DIR"
if [ -x /usr/bin/x86_64-w64-mingw32-gcc-win32 ]; then
sudo update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-win32
fi
@@ -209,6 +321,29 @@ jobs:
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Cache Android SDK packages
uses: actions/cache@v4
with:
path: |
${{ env.ANDROID_HOME }}/platforms/android-35
${{ env.ANDROID_HOME }}/build-tools/34.0.0
${{ env.ANDROID_HOME }}/ndk/25.1.8937393
${{ env.ANDROID_HOME }}/ndk/28.2.13676358
${{ env.ANDROID_HOME }}/cmake/3.22.1
key: android-sdk-${{ runner.os }}-${{ runner.arch }}-api35-bt34-ndk25-ndk28-cmake322
restore-keys: |
android-sdk-${{ runner.os }}-${{ runner.arch }}-
- name: Cache Android native build
uses: actions/cache@v4
with:
path: |
droid/app/.cxx
droid/app/build/intermediates/cxx
key: android-native-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('droid/app/src/main/cpp/CMakeLists.txt', 'droid/app/build.gradle', 'src/**/*.c', 'src/**/*.h', 'flint/src/**/*.c', 'flint/include/**/*.h', 'vendor/raylib/src/**') }}
restore-keys: |
android-native-${{ runner.os }}-${{ runner.arch }}-
- name: Install Android SDK Components
run: |
set -euo pipefail
@@ -264,6 +399,7 @@ jobs:
runs-on: ubuntu-latest
needs:
- build-web
- build-chrome-extension
- build-linux
- build-windows
- build-android
+2
View File
@@ -12,6 +12,7 @@
.cache/
*.wasm
build/
tmp/
vendor-builds/
node_modules
*.nix-defexpr
@@ -19,6 +20,7 @@ node_modules
*.nix-profile
.claude.json
.bash_history
.env
*.exe
+36
View File
@@ -1,4 +1,40 @@
# Changelog
## [1.4.7] - 2026-06-21
### Changed
- Rework Practice into Manual, start, and configuration tabs with a new localized first-run guide.
- Simplify Meditation's manual to one page and make bottom navigation more compact.
## [1.4.6] - 2026-06-20
### Changed
- Move habit weekly, monthly, statistics, and edit views into icon tabs under the habit selector.
- Improve Flint form, modal, tab, and scrollbar widgets for measured layouts and cleaner scrolling.
### Fixed
- Prevent habit info modal text from overlapping the OK button.
## [1.4.5] - 2026-06-20
### Changed
- Fix spacing issues and translations
## [1.4.4] - 2026-06-20
### Added
- Add Russian localization.
- Add a habit stats view with streak, recent activity, weekday, and linked-practice diagrams.
- Add optional in-session volume controls, hidden by default.
- Add Mint and Cobalt themes.
### Changed
- Use one canonical pixel font atlas with Flint-managed DPI scaling and cleaner title sizing.
- Simplify habit counting so multiple counts are opt-in and independent of linked practices.
- Improve habit weekly/calendar spacing, mobile calendar touch feedback, and theme picker ordering.
- Reorganize repeated screen UI into reusable Flint helpers.
### Fixed
- Build the Ubuntu Touch Click package with the OpenStore package id
- Refactor code base
- Sync habit multiple-count settings correctly across clients and preserve queued local habit edits.
- Preserve linked session day behavior while hiding redundant count badges.
## [1.4.3] - 2026-06-20
### Fixed
- Refresh expired native sync auth tokens before sending queued changes.
+231 -37
View File
@@ -26,6 +26,33 @@ LINUX_APPIMAGE_DIR := packaging/linux/appimage
LINUX_APPIMAGE_APPRUN := $(LINUX_APPIMAGE_DIR)/AppRun
LINUX_APPIMAGE_DESKTOP := $(LINUX_APPIMAGE_DIR)/$(APP_NAME).desktop
LINUX_APPIMAGE_ICON := $(LINUX_APPIMAGE_DIR)/$(APP_NAME).png
LINUX_APPIMAGE_APPDATA := $(LINUX_APPIMAGE_DIR)/$(APP_NAME).appdata.xml
CLICK_PACKAGE ?= inbe
CLICK_TITLE ?= $(APP_TITLE)
CLICK_MAINTAINER ?= Waozi Project <[email protected]>
CLICK_ARCH ?= arm64
CLICK_FRAMEWORK ?= ubuntu-sdk-20.04
CLICK_POLICY_VERSION ?= 20.04
CLICK_INCLUDE_METAINFO ?= 0
CLICK_DIR := packaging/click
CLICK_MANIFEST_TEMPLATE := $(CLICK_DIR)/manifest.json.in
CLICK_CONTROL_TEMPLATE := $(CLICK_DIR)/control.in
CLICK_APPARMOR_TEMPLATE := $(CLICK_DIR)/inbe.apparmor.in
CLICK_DESKTOP_TEMPLATE := $(CLICK_DIR)/inbe.desktop.in
CLICK_METAINFO_TEMPLATE := $(CLICK_DIR)/inbe.metainfo.xml.in
CLICK_RUNNER := $(CLICK_DIR)/run-inbe.sh
CLICK_BUILD_DIR := $(BUILD_OBJ_DIR)/click/$(CLICK_ARCH)
CLICK_ROOT := $(CLICK_BUILD_DIR)/$(CLICK_PACKAGE)
CLICK_CONTROL_DIR := $(CLICK_BUILD_DIR)/control
CLICK_BIN_DIR := $(BUILD_BIN_DIR)/click/$(CLICK_ARCH)
CLICK_DIST_DIR := $(BUILD_DIST_DIR)/click
CLICK_TARGET = $(CLICK_DIST_DIR)/$(CLICK_PACKAGE)_$(APP_VERSION)_$(CLICK_ARCH).click
CLICK_BIN := $(CLICK_BIN_DIR)/$(APP_NAME)
CLICK_BIN_INPUT := $(if $(strip $(CLICK_BIN_SOURCE)),$(CLICK_BIN_SOURCE),$(CLICK_BIN))
CLICK_RAYLIB_BUILD_DIR := $(VENDOR_BUILD_DIR)/click/$(CLICK_ARCH)/raylib
CLICK_RAYLIB_A := $(CLICK_RAYLIB_BUILD_DIR)/libraylib.a
CLICK_PATCHELF_INTERPRETER ?= /lib/ld-linux-aarch64.so.1
CLICK_RUNTIME_LIBS ?= $(AARCH64_CLICK_RUNTIME_LIBS)
WINDOWS_OBJ_DIR := $(BUILD_OBJ_DIR)/windows
WINDOWS_BIN_DIR := $(BUILD_BIN_DIR)/windows
WINDOWS_DIST_DIR := $(BUILD_DIST_DIR)/windows
@@ -72,7 +99,7 @@ RAYLIB_SOURCES := $(shell find $(RAYLIB_DIR) -type f \( -name '*.c' -o -name '*.
FLINT_DIR := flint
FLINT_ICON_FILES := $(wildcard $(FLINT_DIR)/icons/*.png)
FLINT_ICON_ASSETS_C := $(FLINT_DIR)/src/flint_icon_assets.c
FLINT_SRCS := $(filter-out $(FLINT_ICON_ASSETS_C),$(wildcard $(FLINT_DIR)/src/*.c)) $(FLINT_ICON_ASSETS_C)
FLINT_SRCS := $(filter-out $(FLINT_ICON_ASSETS_C),$(wildcard $(FLINT_DIR)/src/*.c) $(wildcard $(FLINT_DIR)/src/ui/*.c)) $(FLINT_ICON_ASSETS_C)
FLINT_WEB_SRCS := $(filter-out $(FLINT_DIR)/src/flint_file_dialog.c,$(FLINT_SRCS))
FLINT_WINDOWS_SRCS := $(filter-out $(FLINT_DIR)/src/flint_file_dialog.c,$(FLINT_SRCS))
FLINT_INCLUDE := -I$(FLINT_DIR)/include
@@ -108,7 +135,6 @@ WEB_LIBOQS_A := $(WEB_LIBOQS_BUILD_DIR)/lib/liboqs.a
WEB_LIBOQS_INCLUDE := -I$(WEB_LIBOQS_BUILD_DIR)/include
TEST_BIN_DIR := $(BUILD_BIN_DIR)/tests
STORAGE_IMPORT_TEST := $(TEST_BIN_DIR)/storage_import_test
FLINT_TEXT_SCALING_TEST := $(TEST_BIN_DIR)/flint_text_scaling_test
LOCALE_KEYS_TEST := $(TEST_BIN_DIR)/locale_keys_test
SYNC_URL_TEST := $(TEST_BIN_DIR)/sync_url_test
SYNC_ACCOUNT_TEST := $(TEST_BIN_DIR)/sync_account_test
@@ -131,9 +157,14 @@ APP_SRCS := \
src/practices/meditation/meditation_manual.c \
src/practices/meditation/meditation_config.c \
src/screens/habits_screen.c \
src/screens/statistics_screen.c \
src/screens/habits/edit.c \
src/screens/habits/session.c \
src/practices/meditation/meditation_music.c \
src/core/theme.c \
src/storage/data.c \
src/storage/db.c \
src/storage/import.c \
src/storage/storage.c \
src/storage/sync_account.c \
src/storage/sync_client.c \
@@ -151,7 +182,7 @@ APP_SRCS := \
LOCALE_FILES := $(wildcard locales/*.txt)
IMAGE_FILES := assets/practices/whm/1.jpg assets/practices/whm/2.jpg assets/practices/meditation/1.jpg
SOUND_FILES := $(wildcard assets/sounds/*.ogg)
FONT_OUTPUTS := assets/fonts/locales.png assets/fonts/locales.dat assets/fonts/locales-8.png assets/fonts/locales-8.dat
FONT_OUTPUTS := assets/fonts/locales.png assets/fonts/locales.dat
OTFCHOP_DIR ?= vendor/otfchop
FONT_TOOL := $(OTFCHOP_DIR)/otfchop
FONT_SOURCE := $(OTFCHOP_DIR)/unifont-17.0.04.otf
@@ -164,6 +195,7 @@ APP_RAYLIB_CONFIG := $(filter-out -DSUPPORT_MODULE_RAUDIO=0 -DSUPPORT_FILEFORMAT
CFLAGS := -Wall -Wextra -std=c99 -Os -D_DEFAULT_SOURCE -D_GNU_SOURCE -ffunction-sections -fdata-sections -DSUPPORT_FILEFORMAT_JPG=1 -DMINIZ_NO_ZLIB_COMPATIBLE_NAMES -DFLINT_EMBEDDED_ONLY=1 $(FLINT_RUNTIME_ASSET_CFLAGS)
WINDOWS_CFLAGS := -Wall -Wextra -std=c99 -Os -D_DEFAULT_SOURCE -D_GNU_SOURCE -ffunction-sections -fdata-sections -DSUPPORT_FILEFORMAT_JPG=1 -DMINIZ_NO_ZLIB_COMPATIBLE_NAMES -DFLINT_EMBEDDED_ONLY=1
WEB_CFLAGS := $(filter-out -std=c99,$(CFLAGS)) -std=gnu99
CLICK_CFLAGS := -Wall -Wextra -std=c99 -Os -D_DEFAULT_SOURCE -D_GNU_SOURCE -ffunction-sections -fdata-sections -DSUPPORT_FILEFORMAT_JPG=1 -DMINIZ_NO_ZLIB_COMPATIBLE_NAMES -DFLINT_EMBEDDED_ONLY=1 $(AARCH64_FLINT_CURL_CFLAGS)
LDFLAGS := -Wl,--gc-sections -s
WINDOWS_LDFLAGS := -Wl,--gc-sections -static -static-libgcc -mwindows
WINDOWS_LDLIBS := -lgdi32 -lwinmm -lopengl32 -luser32 -lshell32 -lole32 -lcomdlg32 -lcomctl32 -luuid -lwininet -lws2_32 -liphlpapi -lcrypt32 -lsecur32 -lbcrypt -ladvapi32 -lm
@@ -192,20 +224,25 @@ WEB_CC ?= emcc
WEB_AR ?= emar
WEB_CACHE_BUSTER ?= $(shell if git diff --quiet --ignore-submodules HEAD -- 2>/dev/null; then git rev-parse --short HEAD 2>/dev/null; else date +%s; fi)
WEB_TARGET := $(WEB_DIST_DIR)/index.html
WEB_BOOT_JS := src/web_boot.js
WEB_DIST_ZIP := $(BUILD_DIST_DIR)/$(APP_NAME)-web.zip
WEB_APP_URL ?= https://inbe.waozi.xyz/
CHROME_WEB_STORE_ZIP := $(BUILD_DIST_DIR)/$(APP_NAME)-chrome-web-store.zip
CHROME_WEB_STORE_MANIFEST := packaging/chrome-web-store/manifest.json
CHROME_WEB_STORE_WORKER := packaging/chrome-web-store/service_worker.js
CHROME_WEB_STORE_ICON := web-assets/icons/icon-512x512.png
MAGICK ?= magick
CHROME_WEB_STORE_ICON_DIR := packaging/chrome-web-store/icons
CHROME_WEB_STORE_ICONS := \
$(CHROME_WEB_STORE_ICON_DIR)/icon-16.png \
$(CHROME_WEB_STORE_ICON_DIR)/icon-32.png \
$(CHROME_WEB_STORE_ICON_DIR)/icon-48.png \
$(CHROME_WEB_STORE_ICON_DIR)/icon-128.png
WEB_ASSET_FILES := $(shell find web-assets -type f 2>/dev/null)
UNPACKAGED_AUDIO_DIR := unpackaged_assets/audio
UNPACKAGED_AUDIO_FILES := $(shell find $(UNPACKAGED_AUDIO_DIR) -type f 2>/dev/null)
MEDITATION_AUDIO_ZIP := web-assets/dl/inbe-meditation-audio-v1.zip
.PHONY: all native run test dist appimage vendor-prebuilds vendor-prebuilds-native vendor-prebuilds-web vendor-prebuilds-windows clean clean-linux clean-vendor-builds android-check-keystore android-copy-assets android-local-properties android-debug android-release android-bundle android-install android-install-release android-clean package-unpackaged-assets windows-runtime-assets-check windows windows64 windows32 web chrome-web-store
.NOTPARALLEL: dist windows windows64 windows32 android-release android-bundle
.PHONY: all native run run-fresh screenshot test dist appimage click click-verify vendor-prebuilds vendor-prebuilds-native vendor-prebuilds-web vendor-prebuilds-windows clean clean-linux clean-vendor-builds android-check-keystore android-copy-assets android-local-properties android-debug android-release android-bundle android-install android-install-release android-clean package-unpackaged-assets windows-runtime-assets-check windows windows64 windows32 web chrome-web-store
.NOTPARALLEL: dist windows windows64 windows32 android-release android-bundle click
all: native
@@ -228,6 +265,7 @@ dist:
$(MAKE) package-unpackaged-assets && \
$(MAKE) web && \
$(MAKE) chrome-web-store && \
$(MAKE) click && \
$(MAKE) appimage && \
$(MAKE) windows && \
$(MAKE) android-release PASSWORD="$$password" && \
@@ -235,6 +273,15 @@ dist:
appimage: $(APPIMAGE_TARGET)
click: $(CLICK_TARGET)
click-verify: $(CLICK_TARGET)
@command -v clickable >/dev/null || { \
echo "clickable is missing. Re-enter the flake shell with: nix develop"; \
exit 1; \
}
clickable review $(CLICK_TARGET)
vendor-prebuilds: vendor-prebuilds-native vendor-prebuilds-web vendor-prebuilds-windows
vendor-prebuilds-native: $(RAYLIB_A) $(SQLITE_AMALGAMATION_C) $(SQLITE_AMALGAMATION_H) $(LIBOQS_A) $(CURL_PROTOCOL_CHECK)
@@ -246,27 +293,27 @@ vendor-prebuilds-windows: $(WIN64_RAYLIB_A) $(WIN32_RAYLIB_A) $(WIN64_CURL_A) $(
run: $(TARGET)
./$(TARGET)
test: $(STORAGE_IMPORT_TEST) $(FLINT_TEXT_SCALING_TEST) $(LOCALE_KEYS_TEST) $(SYNC_URL_TEST) $(SYNC_ACCOUNT_TEST)
run-fresh: $(TARGET)
@root=$$(mktemp -d /tmp/inbe-fresh.XXXXXX); \
echo "INBE_DATA_ROOT=$$root"; \
INBE_DATA_ROOT="$$root" ./$(TARGET)
screenshot: $(TARGET)
./scripts/generate-screenshots.sh "$(TARGET)"
test: $(STORAGE_IMPORT_TEST) $(LOCALE_KEYS_TEST) $(SYNC_URL_TEST) $(SYNC_ACCOUNT_TEST)
$(STORAGE_IMPORT_TEST)
$(FLINT_TEXT_SCALING_TEST)
$(LOCALE_KEYS_TEST)
$(SYNC_URL_TEST)
$(SYNC_ACCOUNT_TEST)
$(STORAGE_IMPORT_TEST): tests/storage_import_test.c src/storage/storage.c src/storage/storage.h src/screens/habits_screen.c src/screens/habits_screen.h src/third_party/miniz.c src/third_party/miniz.h $(SQLITE_SRC) $(SQLITE_AMALGAMATION_H) | $(TEST_BIN_DIR)
$(STORAGE_IMPORT_TEST): tests/storage_import_test.c src/storage/storage.c src/storage/db.c src/storage/import.c src/storage/storage.h src/storage/db.h src/storage/import.h src/screens/habits_screen.c src/screens/habits/edit.c src/screens/habits/session.c src/screens/habits_screen.h src/screens/habits/habits.h src/third_party/miniz.c src/third_party/miniz.h $(SQLITE_SRC) $(SQLITE_AMALGAMATION_H) | $(TEST_BIN_DIR)
$(CC) -Wall -Wextra -std=c99 -D_DEFAULT_SOURCE -D_GNU_SOURCE -DMINIZ_NO_ZLIB_COMPATIBLE_NAMES -ffunction-sections -fdata-sections \
-Isrc -Isrc/app -Isrc/core -Isrc/screens -Isrc/screens/settings -Isrc/practices -Isrc/practices/whm -Isrc/practices/meditation -Isrc/storage -Isrc/platform/android -Isrc/third_party -Ivendor/raylib/src $(FLINT_INCLUDE) $(SQLITE_INCLUDE) \
-o $@ \
tests/storage_import_test.c src/storage/storage.c src/screens/habits_screen.c src/third_party/miniz.c $(SQLITE_SRC) \
tests/storage_import_test.c src/storage/storage.c src/storage/db.c src/storage/import.c src/screens/habits_screen.c src/screens/habits/edit.c src/screens/habits/session.c src/third_party/miniz.c $(SQLITE_SRC) \
-Wl,--gc-sections -lm -lpthread -ldl
$(FLINT_TEXT_SCALING_TEST): tests/flint_text_scaling_test.c flint/src/flint_text.c flint/src/flint_clip.c flint/src/flint_scaling.c flint/include/flint_text.h flint/include/flint_clip.h flint/include/flint_scaling.h | $(TEST_BIN_DIR)
$(CC) -Wall -Wextra -std=c99 -ffunction-sections -fdata-sections \
-Iflint/include -Ivendor/raylib/src \
-o $@ \
tests/flint_text_scaling_test.c flint/src/flint_text.c flint/src/flint_clip.c flint/src/flint_scaling.c \
-Wl,--gc-sections -lm
$(LOCALE_KEYS_TEST): tests/locale_keys_test.c $(LOCALE_FILES) | $(TEST_BIN_DIR)
$(CC) -Wall -Wextra -std=c99 -D_DEFAULT_SOURCE \
-o $@ \
@@ -278,14 +325,14 @@ $(SYNC_URL_TEST): tests/sync_url_test.c src/storage/sync_client.c src/storage/sy
tests/sync_url_test.c src/storage/sync_client.c \
-Wl,--gc-sections $(FLINT_CURL_LDLIBS)
$(SYNC_ACCOUNT_TEST): tests/sync_account_test.c src/storage/sync_account.c src/storage/sync_account.h src/storage/storage.c src/storage/storage.h src/third_party/miniz.c src/third_party/miniz.h $(SQLITE_SRC) $(SQLITE_AMALGAMATION_H) | $(TEST_BIN_DIR)
$(SYNC_ACCOUNT_TEST): tests/sync_account_test.c src/storage/sync_account.c src/storage/sync_account.h src/storage/storage.c src/storage/db.c src/storage/import.c src/storage/storage.h src/storage/db.h src/storage/import.h src/third_party/miniz.c src/third_party/miniz.h $(SQLITE_SRC) $(SQLITE_AMALGAMATION_H) | $(TEST_BIN_DIR)
$(CC) -Wall -Wextra -std=c99 -D_DEFAULT_SOURCE -D_GNU_SOURCE -DMINIZ_NO_ZLIB_COMPATIBLE_NAMES -ffunction-sections -fdata-sections \
-Isrc -Isrc/app -Isrc/core -Isrc/screens -Isrc/screens/settings -Isrc/practices -Isrc/practices/whm -Isrc/practices/meditation -Isrc/storage -Isrc/platform/android -Isrc/third_party -Ivendor/raylib/src $(SQLITE_INCLUDE) \
-o $@ \
tests/sync_account_test.c src/storage/sync_account.c src/storage/storage.c src/third_party/miniz.c $(SQLITE_SRC) \
tests/sync_account_test.c src/storage/sync_account.c src/storage/storage.c src/storage/db.c src/storage/import.c src/third_party/miniz.c $(SQLITE_SRC) \
-Wl,--gc-sections -lm -lpthread -ldl
$(BUILD_OBJ_DIR) $(LINUX_BIN_DIR) $(LINUX_DIST_DIR) $(LINUX_APPIMAGE_BUILD_DIR) $(WINDOWS_DIST_DIR) $(ANDROID_BUILD_DIR) $(TEST_BIN_DIR) $(WEB_OBJ_DIR) $(WEB_DIST_DIR) $(CHROME_WEB_STORE_DIR):
$(BUILD_OBJ_DIR) $(LINUX_BIN_DIR) $(LINUX_DIST_DIR) $(LINUX_APPIMAGE_BUILD_DIR) $(CLICK_BIN_DIR) $(CLICK_BUILD_DIR) $(CLICK_DIST_DIR) $(WINDOWS_DIST_DIR) $(ANDROID_BUILD_DIR) $(TEST_BIN_DIR) $(WEB_OBJ_DIR) $(WEB_DIST_DIR) $(CHROME_WEB_STORE_DIR):
mkdir -p $@
$(WINDOWS_BIN_DIR)/$(WIN64_ARCH) $(WINDOWS_BIN_DIR)/$(WIN32_ARCH):
@@ -298,10 +345,7 @@ $(FONT_TOOL): vendor/otfchop/otfchop.c vendor/otfchop/stb_truetype.h vendor/otfc
$(MAKE) -C vendor/otfchop otfchop
assets/fonts/locales.png assets/fonts/locales.dat: $(LOCALE_FILES) $(FONT_TOOL) | assets/fonts
$(FONT_TOOL) --size 16 $(FONT_SOURCE) $(LOCALE_FILES) assets/fonts/locales
assets/fonts/locales-8.png assets/fonts/locales-8.dat: $(LOCALE_FILES) $(FONT_TOOL) | assets/fonts
$(FONT_TOOL) --size 8 $(FONT_SOURCE) $(LOCALE_FILES) assets/fonts/locales-8
$(FONT_TOOL) $(FONT_SOURCE) $(LOCALE_FILES) assets/fonts/locales
$(EMBEDDED_ASSETS_C): $(EMBEDDED_ASSET_FILES) $(FLINT_DIR)/scripts/embed-assets.sh | $(BUILD_OBJ_DIR)
sh $(FLINT_DIR)/scripts/embed-assets.sh $@ $(EMBEDDED_ASSET_FILES)
@@ -338,6 +382,24 @@ $(WEB_RAYLIB_A): $(RAYLIB_SOURCES) | $(WEB_OBJ_DIR)
AR="$(WEB_AR)" \
CUSTOM_CFLAGS="$(APP_RAYLIB_CONFIG) -Os -ffunction-sections -fdata-sections"
$(CLICK_RAYLIB_A): $(RAYLIB_SOURCES)
rm -rf $(VENDOR_BUILD_DIR)/click/$(CLICK_ARCH)/raylib-src
mkdir -p $(VENDOR_BUILD_DIR)/click/$(CLICK_ARCH)/raylib-src $(CLICK_RAYLIB_BUILD_DIR)
cp -R $(RAYLIB_DIR)/. $(VENDOR_BUILD_DIR)/click/$(CLICK_ARCH)/raylib-src/
$(MAKE) -j1 -C $(VENDOR_BUILD_DIR)/click/$(CLICK_ARCH)/raylib-src \
PLATFORM=PLATFORM_DESKTOP_SDL \
GRAPHICS=GRAPHICS_API_OPENGL_ES2 \
RAYLIB_LIBTYPE=STATIC \
RAYLIB_RELEASE_PATH=../raylib \
RAYLIB_MODULE_AUDIO=TRUE \
RAYLIB_MODULE_MODELS=FALSE \
CC="$(AARCH64_CC)" \
AR="$(AARCH64_AR)" \
RANLIB="$(AARCH64_RANLIB)" \
SDL_INCLUDE_PATH="$(AARCH64_RAY_SDL_INCLUDE_DIR)" \
SDL_LIBRARIES="$(AARCH64_RAY_SDL_LDLIBS)" \
CUSTOM_CFLAGS="-DUSING_SDL2_PROJECT $(AARCH64_RAY_CFLAGS) $(APP_RAYLIB_CONFIG) -Os -ffunction-sections -fdata-sections"
$(WIN64_RAYLIB_A): $(RAYLIB_SOURCES)
rm -rf $(VENDOR_BUILD_DIR)/windows/$(WIN64_ARCH)/raylib-src
mkdir -p $(VENDOR_BUILD_DIR)/windows/$(WIN64_ARCH)/raylib-src $(WIN64_RAYLIB_BUILD_DIR)
@@ -532,6 +594,95 @@ $(TARGET): Makefile $(SRC) $(FLINT_SRCS) $(SQLITE_SRC) $(SQLITE_AMALGAMATION_H)
-lm -lpthread -ldl -lrt \
$(LDFLAGS)
$(CLICK_BIN): Makefile $(SRC) $(FLINT_SRCS) $(SQLITE_SRC) $(SQLITE_AMALGAMATION_H) $(FONT_OUTPUTS) $(EMBEDDED_ASSETS_C) $(CLICK_RAYLIB_A) | $(CLICK_BIN_DIR)
$(AARCH64_CC) $(CLICK_CFLAGS) \
$(APP_INCLUDE) \
$(FLINT_INCLUDE) \
$(SQLITE_INCLUDE) \
-I$(RAYLIB_DIR) \
$(AARCH64_RAY_CFLAGS) \
-DPLATFORM_DESKTOP \
-DSUPPORT_MODULE_RAUDIO=1 \
-DSUPPORT_FILEFORMAT_OGG=1 \
-DSUPPORT_FILEFORMAT_MP3=1 \
-o $@ \
$(SRC) \
$(FLINT_SRCS) \
$(SQLITE_SRC) \
$(CLICK_RAYLIB_A) \
$(AARCH64_RAY_LDLIBS) \
$(AARCH64_FLINT_CURL_LDLIBS) \
-lm -lpthread -ldl -lrt \
$(LDFLAGS)
@if command -v patchelf >/dev/null; then \
patchelf --set-interpreter "$(CLICK_PATCHELF_INTERPRETER)" --set-rpath '$$ORIGIN/../lib' $@; \
fi
$(CLICK_TARGET): $(CLICK_BIN_INPUT) $(CLICK_MANIFEST_TEMPLATE) $(CLICK_CONTROL_TEMPLATE) $(CLICK_APPARMOR_TEMPLATE) $(CLICK_DESKTOP_TEMPLATE) $(CLICK_METAINFO_TEMPLATE) $(CLICK_RUNNER) $(LINUX_APPIMAGE_ICON) | $(CLICK_BUILD_DIR) $(CLICK_DIST_DIR)
@command -v ar >/dev/null || { \
echo "ar is missing. Re-enter the flake shell with: nix develop"; \
exit 1; \
}
rm -rf $(CLICK_ROOT) $(CLICK_CONTROL_DIR)
rm -f $(CLICK_DIST_DIR)/$(CLICK_PACKAGE)_*_$(CLICK_ARCH).click
rm -f $(CLICK_BUILD_DIR)/debian-binary $(CLICK_BUILD_DIR)/control.tar.gz $(CLICK_BUILD_DIR)/data.tar.gz
mkdir -p $(CLICK_ROOT)/usr/bin $(CLICK_ROOT)/usr/lib $(CLICK_ROOT)/usr/share/applications $(CLICK_ROOT)/usr/share/icons/hicolor/512x512/apps $(CLICK_ROOT)/usr/share/metainfo
mkdir -p $(CLICK_CONTROL_DIR)
cp $(CLICK_BIN_INPUT) $(CLICK_ROOT)/usr/bin/$(APP_NAME)
cp $(CLICK_RUNNER) $(CLICK_ROOT)/run-inbe.sh
chmod +x $(CLICK_ROOT)/run-inbe.sh $(CLICK_ROOT)/usr/bin/$(APP_NAME)
@for lib in $(CLICK_RUNTIME_LIBS); do \
if [ -f "$$lib" ]; then \
cp -L "$$lib" $(CLICK_ROOT)/usr/lib/; \
fi; \
done
@if command -v patchelf >/dev/null; then \
for elf in $(CLICK_ROOT)/usr/lib/*.so*; do \
if [ -f "$$elf" ]; then patchelf --set-rpath '$$ORIGIN' "$$elf" >/dev/null 2>&1 || true; fi; \
done; \
fi
sed -e 's#__CLICK_PACKAGE__#$(CLICK_PACKAGE)#g' \
-e 's#__CLICK_TITLE__#$(CLICK_TITLE)#g' \
-e 's#__APP_VERSION__#$(APP_VERSION)#g' \
-e 's#__CLICK_ARCH__#$(CLICK_ARCH)#g' \
-e 's#__CLICK_FRAMEWORK__#$(CLICK_FRAMEWORK)#g' \
-e 's#__CLICK_MAINTAINER__#$(CLICK_MAINTAINER)#g' \
$(CLICK_MANIFEST_TEMPLATE) > $(CLICK_ROOT)/manifest.json
cp $(CLICK_ROOT)/manifest.json $(CLICK_CONTROL_DIR)/manifest
installed_size=$$(du -sk $(CLICK_ROOT) | awk '{ print $$1 }'); \
sed -e 's#__CLICK_PACKAGE__#$(CLICK_PACKAGE)#g' \
-e 's#__APP_VERSION__#$(APP_VERSION)#g' \
-e 's#__CLICK_ARCH__#$(CLICK_ARCH)#g' \
-e 's#__CLICK_TITLE__#$(CLICK_TITLE)#g' \
-e 's#__CLICK_MAINTAINER__#$(CLICK_MAINTAINER)#g' \
-e "s#__INSTALLED_SIZE__#$$installed_size#g" \
$(CLICK_CONTROL_TEMPLATE) > $(CLICK_CONTROL_DIR)/control
printf '%s\n' '#! /bin/sh' \
'echo "Click packages may not be installed directly using dpkg."' \
'echo "Use '\''click install'\'' instead."' \
'exit 1' > $(CLICK_CONTROL_DIR)/preinst
sed -e 's#__CLICK_POLICY_VERSION__#$(CLICK_POLICY_VERSION)#g' \
$(CLICK_APPARMOR_TEMPLATE) > $(CLICK_ROOT)/inbe.apparmor
sed -e 's#__CLICK_TITLE__#$(CLICK_TITLE)#g' \
$(CLICK_DESKTOP_TEMPLATE) > $(CLICK_ROOT)/inbe.desktop
@if [ "$(CLICK_INCLUDE_METAINFO)" = "1" ]; then \
sed -e 's#__CLICK_PACKAGE__#$(CLICK_PACKAGE)#g' \
-e 's#__APP_VERSION__#$(APP_VERSION)#g' \
-e 's#__RELEASE_DATE__#$(shell date -u +%Y-%m-%d)#g' \
$(CLICK_METAINFO_TEMPLATE) > $(CLICK_ROOT)/usr/share/metainfo/$(CLICK_PACKAGE).metainfo.xml; \
fi
cp $(LINUX_APPIMAGE_ICON) $(CLICK_ROOT)/inbe.png
cp $(LINUX_APPIMAGE_ICON) $(CLICK_ROOT)/usr/share/icons/hicolor/512x512/apps/inbe.png
cd $(CLICK_ROOT) && find . -type f -printf '%P\n' | LC_ALL=C sort | xargs md5sum > $(abspath $(CLICK_CONTROL_DIR)/md5sums)
printf '2.0\n' > $(CLICK_BUILD_DIR)/debian-binary
tar -C $(CLICK_CONTROL_DIR) --sort=name --owner=0 --group=0 --numeric-owner -czf $(abspath $(CLICK_BUILD_DIR)/control.tar.gz) control manifest md5sums preinst
tar -C $(CLICK_ROOT) --sort=name --owner=0 --group=0 --numeric-owner -czf $(abspath $(CLICK_BUILD_DIR)/data.tar.gz) inbe.apparmor inbe.desktop inbe.png manifest.json run-inbe.sh usr
cd $(CLICK_BUILD_DIR) && ar rcs $(abspath $@) debian-binary control.tar.gz data.tar.gz
test -f $@
ar t $@ | grep -qx debian-binary
ar t $@ | grep -qx control.tar.gz
ar t $@ | grep -qx data.tar.gz
$(WIN64_TARGET): Makefile $(SRC) $(FLINT_WINDOWS_SRCS) $(SQLITE_SRC) $(SQLITE_AMALGAMATION_H) $(FONT_OUTPUTS) $(EMBEDDED_ASSETS_C) $(WIN64_RAYLIB_A) $(WIN64_CURL_A) | $(WINDOWS_BIN_DIR)/$(WIN64_ARCH)
$(WIN64_CC) $(WINDOWS_CFLAGS) \
$(APP_INCLUDE) \
@@ -572,7 +723,7 @@ $(WIN32_TARGET): Makefile $(SRC) $(FLINT_WINDOWS_SRCS) $(SQLITE_SRC) $(SQLITE_AM
$(WINDOWS_LDFLAGS)
$(WIN32_STRIP) $@
$(APPIMAGE_TARGET): $(TARGET) $(LINUX_APPIMAGE_APPRUN) $(LINUX_APPIMAGE_DESKTOP) $(LINUX_APPIMAGE_ICON) | $(LINUX_DIST_DIR) $(LINUX_APPIMAGE_BUILD_DIR)
$(APPIMAGE_TARGET): $(TARGET) $(LINUX_APPIMAGE_APPRUN) $(LINUX_APPIMAGE_DESKTOP) $(LINUX_APPIMAGE_ICON) $(LINUX_APPIMAGE_APPDATA) | $(LINUX_DIST_DIR) $(LINUX_APPIMAGE_BUILD_DIR)
@command -v linuxdeploy-plugin-appimage >/dev/null || { \
echo "linuxdeploy-plugin-appimage is missing. Re-enter the flake shell with: nix develop"; \
exit 1; \
@@ -588,13 +739,29 @@ $(APPIMAGE_TARGET): $(TARGET) $(LINUX_APPIMAGE_APPRUN) $(LINUX_APPIMAGE_DESKTOP)
rm -rf $(LINUX_APPDIR)
rm -rf $(LINUX_DIST_DIR)/*.AppDir
rm -f $(LINUX_DIST_DIR)/*.AppImage
mkdir -p $(LINUX_APPDIR)/usr/bin $(LINUX_APPDIR)/usr/share/applications $(LINUX_APPDIR)/usr/share/icons/hicolor/512x512/apps
mkdir -p $(LINUX_APPDIR)/usr/bin $(LINUX_APPDIR)/usr/lib $(LINUX_APPDIR)/usr/share/applications $(LINUX_APPDIR)/usr/share/icons/hicolor/512x512/apps $(LINUX_APPDIR)/usr/share/metainfo
cp $(TARGET) $(LINUX_APPDIR)/usr/bin/$(APP_NAME)
patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 $(LINUX_APPDIR)/usr/bin/$(APP_NAME)
cp $(LINUX_APPIMAGE_APPRUN) $(LINUX_APPDIR)/AppRun
chmod +x $(LINUX_APPDIR)/AppRun
@loader=$$(LC_ALL=C readelf -l $(TARGET) | sed -n 's#.*Requesting program interpreter: \(.*\)]#\1#p'); \
if printf '%s\n' "$$loader" | grep -q '^/nix/store/.*glibc.*/'; then \
glibc_lib_dir=$$(dirname "$$loader"); \
echo "Bundling glibc loader: $$loader"; \
cp "$$loader" $(LINUX_APPDIR)/usr/lib/; \
for lib in libc.so.6 libm.so.6 libpthread.so.0 libdl.so.2 librt.so.1 libresolv.so.2 libnss_files.so.2; do \
if [ -f "$$glibc_lib_dir/$$lib" ]; then \
cp "$$glibc_lib_dir/$$lib" $(LINUX_APPDIR)/usr/lib/; \
chmod u+w $(LINUX_APPDIR)/usr/lib/$$lib; \
fi; \
done; \
chmod u+w $(LINUX_APPDIR)/usr/lib/$$(basename "$$loader"); \
else \
echo "Not bundling glibc; build interpreter is $$loader"; \
fi
cp $(LINUX_APPIMAGE_DESKTOP) $(LINUX_APPDIR)/$(APP_NAME).desktop
cp $(LINUX_APPIMAGE_DESKTOP) $(LINUX_APPDIR)/usr/share/applications/$(APP_NAME).desktop
cp $(LINUX_APPIMAGE_APPDATA) $(LINUX_APPDIR)/usr/share/metainfo/$(ANDROID_APP_ID).metainfo.xml
cp $(LINUX_APPIMAGE_ICON) $(LINUX_APPDIR)/$(APP_NAME).png
cp $(LINUX_APPIMAGE_ICON) $(LINUX_APPDIR)/usr/share/icons/hicolor/512x512/apps/$(APP_NAME).png
cd $(LINUX_APPIMAGE_BUILD_DIR) && env -u SOURCE_DATE_EPOCH ARCH=$(ARCH) LDAI_OUTPUT=$(abspath $(APPIMAGE_TARGET)) $(LINUXDEPLOY) \
@@ -605,7 +772,7 @@ $(APPIMAGE_TARGET): $(TARGET) $(LINUX_APPIMAGE_APPRUN) $(LINUX_APPIMAGE_DESKTOP)
--output appimage
test -f $@
$(WEB_TARGET): Makefile $(SRC) $(FLINT_WEB_SRCS) $(SQLITE_SRC) $(SQLITE_AMALGAMATION_H) $(FONT_OUTPUTS) $(EMBEDDED_ASSETS_C) $(WEB_RAYLIB_A) $(WEB_LIBOQS_A) src/web_shell.html manifest.json $(WEB_ASSET_FILES) $(MEDITATION_AUDIO_ZIP) | $(WEB_DIST_DIR)
$(WEB_TARGET): Makefile $(SRC) $(FLINT_WEB_SRCS) $(SQLITE_SRC) $(SQLITE_AMALGAMATION_H) $(FONT_OUTPUTS) $(EMBEDDED_ASSETS_C) $(WEB_RAYLIB_A) $(WEB_LIBOQS_A) src/web_shell.html $(WEB_BOOT_JS) manifest.json $(WEB_ASSET_FILES) $(MEDITATION_AUDIO_ZIP) | $(WEB_DIST_DIR)
rm -f $(WEB_DIST_DIR)/index.data
$(WEB_CC) $(WEB_CFLAGS) \
$(APP_INCLUDE) \
@@ -630,12 +797,15 @@ $(WEB_TARGET): Makefile $(SRC) $(FLINT_WEB_SRCS) $(SQLITE_SRC) $(SQLITE_AMALGAMA
-sFETCH=1 \
-sALLOW_MEMORY_GROWTH=1 \
-sSTACK_SIZE=8388608 \
-sEXPORTED_FUNCTIONS=_main,_malloc,_free,_app_web_get_play_in_background,_app_web_set_backgrounded,_app_web_background_tick \
--shell-file src/web_shell.html \
-lidbfs.js \
-lm
perl -0pi -e 's/WEB_CACHE_BUSTER/$(WEB_CACHE_BUSTER)/g' $(WEB_DIST_DIR)/index.html
cp $(WEB_BOOT_JS) $(WEB_DIST_DIR)/index_boot.js
perl -0pi -e 's/WEB_CACHE_BUSTER/$(WEB_CACHE_BUSTER)/g' $(WEB_DIST_DIR)/index_boot.js
cp -R web-assets $(WEB_DIST_DIR)/
cp manifest.json $(WEB_DIST_DIR)/
cp manifest.json $(WEB_DIST_DIR)/webmanifest.json
android-copy-assets:
$(MAKE) $(FONT_OUTPUTS)
@@ -802,17 +972,14 @@ web:
chrome-web-store: $(CHROME_WEB_STORE_ZIP)
$(CHROME_WEB_STORE_ZIP): $(CHROME_WEB_STORE_MANIFEST) $(CHROME_WEB_STORE_WORKER) $(CHROME_WEB_STORE_ICON) | $(CHROME_WEB_STORE_DIR)
$(CHROME_WEB_STORE_ZIP): $(WEB_TARGET) $(CHROME_WEB_STORE_MANIFEST) $(CHROME_WEB_STORE_WORKER) $(CHROME_WEB_STORE_ICONS) | $(CHROME_WEB_STORE_DIR)
rm -rf $(CHROME_WEB_STORE_DIR)
mkdir -p $(CHROME_WEB_STORE_DIR)/icons
cp -R $(WEB_DIST_DIR)/. $(CHROME_WEB_STORE_DIR)/
sed -e 's#__APP_VERSION__#$(APP_VERSION)#g' \
$(CHROME_WEB_STORE_MANIFEST) > $(CHROME_WEB_STORE_DIR)/manifest.json
sed -e 's#__WEB_APP_URL__#$(WEB_APP_URL)#g' \
$(CHROME_WEB_STORE_WORKER) > $(CHROME_WEB_STORE_DIR)/service_worker.js
$(MAGICK) $(CHROME_WEB_STORE_ICON) -filter point -resize 16x16 $(CHROME_WEB_STORE_DIR)/icons/icon-16.png
$(MAGICK) $(CHROME_WEB_STORE_ICON) -filter point -resize 32x32 $(CHROME_WEB_STORE_DIR)/icons/icon-32.png
$(MAGICK) $(CHROME_WEB_STORE_ICON) -filter point -resize 48x48 $(CHROME_WEB_STORE_DIR)/icons/icon-48.png
$(MAGICK) $(CHROME_WEB_STORE_ICON) -filter point -resize 128x128 $(CHROME_WEB_STORE_DIR)/icons/icon-128.png
cp $(CHROME_WEB_STORE_WORKER) $(CHROME_WEB_STORE_DIR)/service_worker.js
cp $(CHROME_WEB_STORE_ICONS) $(CHROME_WEB_STORE_DIR)/icons/
rm -f $(CHROME_WEB_STORE_ZIP)
cd $(CHROME_WEB_STORE_DIR) && zip -9 -r $(abspath $(CHROME_WEB_STORE_ZIP)) .
@@ -825,7 +992,7 @@ clean-linux:
clean-vendor-builds:
rm -rf $(VENDOR_BUILD_DIR)
NEEDS_NATIVE_ENV := $(if $(MAKECMDGOALS),$(filter all native run dist appimage vendor-prebuilds vendor-prebuilds-native,$(MAKECMDGOALS)),native)
NEEDS_NATIVE_ENV := $(if $(MAKECMDGOALS),$(filter all native run run-fresh dist appimage vendor-prebuilds vendor-prebuilds-native,$(MAKECMDGOALS)),native)
ifneq ($(strip $(NEEDS_NATIVE_ENV)),)
ifeq ($(strip $(RAY_CFLAGS)),)
$(error RAY_CFLAGS is not set. Enter the ray flake shell with 'nix develop')
@@ -849,3 +1016,30 @@ ifneq ($(shell v='$(FLINT_CURL_VERSION_HEX)'; if [ "$$v" = 075600 ] || [ "$$v" \
$(error libcurl >= 7.86.0 is required for websocket sync; found LIBCURL_VERSION_NUM=$(FLINT_CURL_VERSION_NUM))
endif
endif
NEEDS_CLICK_ENV := $(filter click click-verify,$(MAKECMDGOALS))
ifneq ($(strip $(NEEDS_CLICK_ENV)),)
ifeq ($(strip $(CLICK_BIN_SOURCE)),)
ifeq ($(strip $(AARCH64_CC)),)
$(error AARCH64_CC is not set. Enter the ray flake shell with 'nix develop' or pass CLICK_BIN_SOURCE=/path/to/inbe)
endif
ifeq ($(strip $(AARCH64_AR)),)
$(error AARCH64_AR is not set. Enter the ray flake shell with 'nix develop' or pass CLICK_BIN_SOURCE=/path/to/inbe)
endif
ifeq ($(strip $(AARCH64_RANLIB)),)
$(error AARCH64_RANLIB is not set. Enter the ray flake shell with 'nix develop' or pass CLICK_BIN_SOURCE=/path/to/inbe)
endif
ifeq ($(strip $(AARCH64_RAY_CFLAGS)),)
$(error AARCH64_RAY_CFLAGS is not set. Enter the ray flake shell with 'nix develop' or pass CLICK_BIN_SOURCE=/path/to/inbe)
endif
ifeq ($(strip $(AARCH64_RAY_LDLIBS)),)
$(error AARCH64_RAY_LDLIBS is not set. Enter the ray flake shell with 'nix develop' or pass CLICK_BIN_SOURCE=/path/to/inbe)
endif
ifeq ($(strip $(AARCH64_RAY_SDL_INCLUDE_DIR)),)
$(error AARCH64_RAY_SDL_INCLUDE_DIR is not set. Enter the ray flake shell with 'nix develop' or pass CLICK_BIN_SOURCE=/path/to/inbe)
endif
ifeq ($(strip $(AARCH64_FLINT_CURL_LDLIBS)),)
$(error AARCH64_FLINT_CURL_LDLIBS is not set. Enter the ray flake shell with 'nix develop' or pass CLICK_BIN_SOURCE=/path/to/inbe)
endif
endif
endif
Binary file not shown.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 KiB

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 249 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 235 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 323 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 265 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 294 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 305 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 328 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 B

+2061
View File
File diff suppressed because it is too large. Load diff

After

Width:  |  Height:  |  Size: 131 KiB

+2 -2
View File
@@ -35,8 +35,8 @@ android {
defaultConfig {
minSdk 21
targetSdk 35
versionCode 38
versionName "1.4.3"
versionCode 42
versionName "1.4.7"
}
+6 -3
View File
@@ -14,7 +14,7 @@ set(OQS_BUILD_ONLY_LIB ON CACHE BOOL "" FORCE)
set(OQS_USE_OPENSSL OFF CACHE BOOL "" FORCE)
set(OQS_MINIMAL_BUILD "SIG_ml_dsa_44" CACHE STRING "" FORCE)
add_subdirectory("${REPO_ROOT}/vendor/liboqs" "${CMAKE_BINARY_DIR}/liboqs")
file(GLOB FLINT_SOURCES CONFIGURE_DEPENDS "${FLINT_DIR}/src/*.c")
file(GLOB FLINT_SOURCES CONFIGURE_DEPENDS "${FLINT_DIR}/src/*.c" "${FLINT_DIR}/src/ui/*.c")
list(REMOVE_ITEM FLINT_SOURCES "${FLINT_DIR}/src/flint_file_dialog.c")
file(GLOB INBE_LOCALE_ASSETS RELATIVE "${REPO_ROOT}" CONFIGURE_DEPENDS "${REPO_ROOT}/locales/*.txt")
file(GLOB INBE_SOUND_ASSETS RELATIVE "${REPO_ROOT}" CONFIGURE_DEPENDS "${REPO_ROOT}/assets/sounds/*.ogg")
@@ -25,8 +25,6 @@ set(INBE_EMBEDDED_INPUTS
assets/practices/meditation/1.jpg
assets/fonts/locales.png
assets/fonts/locales.dat
assets/fonts/locales-8.png
assets/fonts/locales-8.dat
${INBE_SOUND_ASSETS}
)
set(INBE_EMBEDDED_DEPS)
@@ -105,9 +103,14 @@ add_library(main SHARED
"${SRC_DIR}/practices/meditation/meditation_manual.c"
"${SRC_DIR}/practices/meditation/meditation_config.c"
"${SRC_DIR}/screens/habits_screen.c"
"${SRC_DIR}/screens/statistics_screen.c"
"${SRC_DIR}/screens/habits/edit.c"
"${SRC_DIR}/screens/habits/session.c"
"${SRC_DIR}/practices/meditation/meditation_music.c"
"${SRC_DIR}/core/theme.c"
"${SRC_DIR}/storage/data.c"
"${SRC_DIR}/storage/db.c"
"${SRC_DIR}/storage/import.c"
"${SRC_DIR}/storage/storage.c"
"${SRC_DIR}/storage/sync_account.c"
"${SRC_DIR}/storage/sync_client.c"
@@ -2,11 +2,9 @@ Eine freie, quelloffene App für Atmung, Meditation und Gewohnheiten.
Funktionen:
- Geführte Übungen mit visuellen und akustischen Hinweisen
- Mind, Yoga und Fitness für Gewohnheiten und Übungen
- Anpassbare Atemsitzungen und Meditationstimer
- Gewohnheitstracking mit Sitzungsverlauf
- Mind, Yoga und Fitness für verschiedene Übungsroutinen
- Anpassbare Atemsitzungen, Meditationstimer und Zähler
- Gewohnheitstracking mit Verlauf und verknüpften Übungszahlen
- Optionale Synchronisierung von Gewohnheiten, Sitzungen und Fortschritt
- Lokale Speicherung mit Import und Export
- Anpassbare Designs mit hellen und dunklen Varianten
- Touch-optimierte Oberfläche für Mobilgeräte
Verfügbare Plattformen: Linux, Windows, Android, WebAssembly.
@@ -1 +1 @@
Eine freie App für Atmung, Meditation und Gewohnheiten.
Atmung, Meditation und Gewohnheiten mit Synchronisierung.
@@ -0,0 +1,3 @@
### Fixed
- Build the Ubuntu Touch Click package with the OpenStore package id and review-compatible control metadata.
- Omit Click AppStream metadata by default to avoid OpenStore revision import failures.
@@ -0,0 +1,2 @@
### Changed
- Fix spacing issues and translations
@@ -0,0 +1,4 @@
### Changed
- Add a responsive Flint sidebar, configurable bottom navigation, and independent Statistics screen.
### Fixed
- Preserve queued local habit counter settings when applying sync responses.
@@ -0,0 +1,3 @@
### Changed
- Rework Practice into Manual, start, and configuration tabs with a new localized first-run guide.
- Simplify Meditation's manual to one page and make bottom navigation more compact.
@@ -2,11 +2,9 @@ A free, open-source practice app for breathing, meditation, and habit tracking.
Features:
- Guided practice sessions with visual and audio cues
- Mind, Yoga, and Fitness organization for habits and practice views
- Configurable breathing sessions and meditation timers
- Habit tracking with session history
- Mind, Yoga, and Fitness organization for different practice routines
- Customizable breathing sessions, meditation timers, and habit counters
- Habit tracking with session history and linked practice counts
- Optional sync for habits, sessions, and practice progress
- Local storage with import/export support
- Theme customization with light and dark variants
- Touch-optimized UI for mobile devices
Available platforms: Linux, Windows, Android, WebAssembly.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 187 KiB

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 KiB

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 KiB

@@ -1 +1 @@
A free, open-source app for breathing, meditation, and habit tracking.
Syncable breathing, meditation, and habit practice app.
@@ -2,11 +2,9 @@ Una app libre y de código abierto para respiración, meditación y hábitos.
Funciones:
- Prácticas guiadas con señales visuales y de audio
- Organización Mind, Yoga y Fitness para hábitos y prácticas
- Sesiones de respiración y temporizadores de meditación configurables
- Seguimiento de hábitos con historial de sesiones
- Organización Mind, Yoga y Fitness para distintas rutinas de práctica
- Sesiones de respiración, temporizadores y contadores configurables
- Seguimiento de hábitos con historial y recuentos vinculados a prácticas
- Sincronización opcional de hábitos, sesiones y progreso
- Almacenamiento local con importación y exportación
- Temas personalizables con variantes claras y oscuras
- Interfaz optimizada para pantallas táctiles
Plataformas disponibles: Linux, Windows, Android, WebAssembly.
@@ -1 +1 @@
Una app libre para respiración, meditación y hábitos.
Respiración, meditación y hábitos con sincronización.
@@ -2,11 +2,9 @@ Une app libre et open source pour respiration, méditation et habitudes.
Fonctionnalités :
- Pratiques guidées avec repères visuels et audio
- Organisation Mind, Yoga et Fitness pour habitudes et pratiques
- Séances de respiration et minuteries de méditation configurables
- Suivi des habitudes avec historique des séances
- Organisation Mind, Yoga et Fitness pour différentes routines
- Séances de respiration, minuteries et compteurs personnalisables
- Suivi des habitudes avec historique et comptes liés aux pratiques
- Synchronisation optionnelle des habitudes, séances et progrès
- Stockage local avec import et export
- Thèmes personnalisables avec variantes claires et sombres
- Interface optimisée pour les écrans tactiles
Plateformes disponibles : Linux, Windows, Android, WebAssembly.
@@ -1 +1 @@
Une app libre pour respiration, méditation et habitudes.
Respiration, méditation et habitudes avec synchronisation.
@@ -2,11 +2,9 @@ Um app livre e de código aberto para respiração, meditação e hábitos.
Recursos:
- Práticas guiadas com sinais visuais e sonoros
- Organização Mind, Yoga e Fitness para hábitos e práticas
- Sessões de respiração e timers de meditação configuráveis
- Acompanhamento de hábitos com histórico de sessões
- Organização Mind, Yoga e Fitness para diferentes rotinas de prática
- Sessões de respiração, timers de meditação e contadores configuráveis
- Acompanhamento de hábitos com histórico e contagens ligadas às práticas
- Sincronização opcional de hábitos, sessões e progresso
- Armazenamento local com importação e exportação
- Temas personalizáveis com variantes claras e escuras
- Interface otimizada para toque em dispositivos móveis
Plataformas disponíveis: Linux, Windows, Android, WebAssembly.
@@ -1 +1 @@
Um app livre para respiração, meditação e hábitos.
Respiração, meditação e hábitos com sincronização.
+18
View File
@@ -86,9 +86,12 @@
aarch64PkgConfigPath = pkgs.lib.makeSearchPath "lib/pkgconfig" [
aarch64Pkgs.SDL2.dev
aarch64Pkgs.curl.dev
aarch64Pkgs.openssl.dev
aarch64Pkgs.libdrm.dev
aarch64Pkgs.libgbm
aarch64Pkgs.libglvnd.dev
aarch64Pkgs.zlib.dev
];
windowsTargetPkgs = pkgs.lib.optionals windowsCrossEnabled [
@@ -190,6 +193,8 @@ EOF
sdl2Pkgs.SDL2
sdl2Pkgs.SDL2.dev
butler
binutils
clickable
cmake
curl
curl.dev
@@ -200,6 +205,7 @@ EOF
gradle
imagemagick
jdk17
libxml2
libdrm
libdrm.dev
libgbm
@@ -215,19 +221,27 @@ EOF
ninja
openssl
openssl.dev
patchelf
pkg-config
pipewire
rsync
xvfb-run
zlib
zip
aarch64Pkgs.stdenv.cc
aarch64Pkgs.SDL2
aarch64Pkgs.SDL2.dev
aarch64Pkgs.curl
aarch64Pkgs.curl.dev
aarch64Pkgs.openssl
aarch64Pkgs.openssl.dev
aarch64Pkgs.libdrm
aarch64Pkgs.libdrm.dev
aarch64Pkgs.libgbm
aarch64Pkgs.libglvnd
aarch64Pkgs.libglvnd.dev
aarch64Pkgs.zlib
aarch64Pkgs.zlib.dev
] ++ windowsTargetPkgs;
profile = ''
@@ -264,6 +278,7 @@ EOF
export AARCH64_CC="${aarch64Pkgs.stdenv.cc}/bin/${aarch64Pkgs.stdenv.cc.targetPrefix}cc"
export AARCH64_AR="${aarch64Pkgs.stdenv.cc.bintools.bintools}/bin/${aarch64Pkgs.stdenv.cc.targetPrefix}ar"
export AARCH64_RANLIB="${aarch64Pkgs.stdenv.cc.bintools.bintools}/bin/${aarch64Pkgs.stdenv.cc.targetPrefix}ranlib"
export AARCH64_PKG_CONFIG_PATH="${aarch64PkgConfigPath}"
export AARCH64_RAY_SDL_CFLAGS="-D_GNU_SOURCE=1 -D_REENTRANT -I${aarch64Pkgs.SDL2.dev}/include -I${aarch64Pkgs.SDL2.dev}/include/SDL2"
export AARCH64_RAY_SDL_LDLIBS="-L${aarch64Pkgs.SDL2}/lib -lSDL2"
@@ -272,6 +287,9 @@ EOF
export AARCH64_RAY_CFLAGS="$AARCH64_RAY_SDL_CFLAGS $AARCH64_RAY_GL_CFLAGS"
export AARCH64_RAY_LDLIBS="$AARCH64_RAY_SDL_LDLIBS $AARCH64_RAY_GL_LDLIBS"
export AARCH64_RAY_SDL_INCLUDE_DIR="${aarch64Pkgs.SDL2.dev}/include"
export AARCH64_FLINT_CURL_CFLAGS="$(PKG_CONFIG_PATH="$AARCH64_PKG_CONFIG_PATH" pkg-config --cflags libcurl)"
export AARCH64_FLINT_CURL_LDLIBS="$(PKG_CONFIG_PATH="$AARCH64_PKG_CONFIG_PATH" pkg-config --libs libcurl)"
export AARCH64_CLICK_RUNTIME_LIBS="${aarch64Pkgs.SDL2}/lib/libSDL2-2.0.so.0 ${aarch64Pkgs.curl.out}/lib/libcurl.so.4 ${aarch64Pkgs.openssl.out}/lib/libssl.so.3 ${aarch64Pkgs.openssl.out}/lib/libcrypto.so.3 ${aarch64Pkgs.libdrm}/lib/libdrm.so.2 ${aarch64Pkgs.libgbm}/lib/libgbm.so.1 ${aarch64Pkgs.libglvnd}/lib/libEGL.so.1 ${aarch64Pkgs.libglvnd}/lib/libGLESv2.so.2 ${aarch64Pkgs.zlib}/lib/libz.so.1"
${windowsProfile}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 172 B

After

Width:  |  Height:  |  Size: 236 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 180 B

After

Width:  |  Height:  |  Size: 150 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 165 B

After

Width:  |  Height:  |  Size: 197 B

+1
View File
@@ -10,6 +10,7 @@
#include "flint_text.h"
#include "flint_ui.h"
#include "flint_text_layout.h"
#include "flint_transition.h"
#include "flint_locale.h"
#include "flint_theme.h"
#include "flint_theme_meta.h"
+1 -7
View File
@@ -5,12 +5,8 @@
#define FLINT_TEXT_8 8
#define FLINT_TEXT_12 12
#define FLINT_TEXT_14 14
#define FLINT_TEXT_16 16
#define FLINT_TEXT_18 18
#define FLINT_TEXT_20 20
#define FLINT_TEXT_24 24
#define FLINT_TEXT_32 32
#define FLINT_TEXT_BASE_SIZE 16
void flint_text_set_font(Font font);
@@ -19,16 +15,14 @@ Font flint_text_font(void);
Font flint_text_load_chopped_font(const char *png_path, const char *dat_path, int base_size);
Font flint_text_load_chopped_font_from_memory(const unsigned char *png_data, unsigned int png_size, const unsigned char *dat_data, unsigned int dat_size, int base_size);
void flint_text_unload_font(Font *font);
int flint_text_size(int preferred_size);
int flint_text_dpi_size(int base_size);
int flint_text_measure(const char *text, int font_size);
int flint_text_height(const char *text, int font_size);
int flint_text_line_height(int font_size);
int flint_text_measure_scaled(const char *text, int scale);
void flint_text_draw(const char *text, int x, int y, int font_size, Color color);
void flint_text_draw_scaled(const char *text, int x, int y, int scale, Color color);
void flint_text_draw_centered(const char *text, int center_x, int center_y, int font_size, Color color);
void flint_text_draw_in_rect(const char *text, Rectangle rect, int font_size, Color color);
void flint_text_draw_fitted_in_rect(const char *text, Rectangle rect, int preferred_size, int min_size, Color color);
int flint_text_y(const char *text, int box_y, int box_h, int font_size);
int flint_text_y_scaled(const char *text, int box_y, int box_h, int scale);
+4 -2
View File
@@ -5,7 +5,7 @@
#include <stdbool.h>
#define FLINT_THEME_COUNT 10
#define FLINT_THEME_COUNT 12
typedef enum {
FLINT_THEME_SKY = 0,
@@ -17,7 +17,9 @@ typedef enum {
FLINT_THEME_DAWN = 6,
FLINT_THEME_SAGE = 7,
FLINT_THEME_INK = 8,
FLINT_THEME_MONO = 9
FLINT_THEME_MONO = 9,
FLINT_THEME_MINT = 10,
FLINT_THEME_COBALT = 11
} FlintThemeId;
typedef struct {
+27
View File
@@ -0,0 +1,27 @@
#ifndef FLINT_TRANSITION_H
#define FLINT_TRANSITION_H
#include "raylib.h"
typedef enum FlintTransitionPhase {
FLINT_TRANSITION_NONE = 0,
FLINT_TRANSITION_OUT = 1,
FLINT_TRANSITION_IN = 2
} FlintTransitionPhase;
typedef struct FlintTransition {
int active;
int phase;
int ticks;
int duration;
} FlintTransition;
void flint_transition_reset(FlintTransition *transition);
void flint_transition_begin(FlintTransition *transition, int duration);
void flint_transition_reverse_to_out(FlintTransition *transition);
float flint_transition_alpha(const FlintTransition *transition);
int flint_transition_step(FlintTransition *transition);
void flint_transition_draw_fade(const FlintTransition *transition,
int width, int height, Color color);
#endif
+265 -15
View File
@@ -60,6 +60,194 @@ typedef struct {
float radius;
} FlintUIIconButton;
typedef struct {
int id;
int x;
int y;
int icon_size;
int icon_padding;
Texture2D icon;
int *open;
int *value;
int min;
int max;
int popup_width;
int popup_height;
} FlintUIIconSliderPopup;
typedef struct {
Texture2D icon;
int disabled;
} FlintUIIconRowItem;
typedef struct {
int center_x;
int view_width;
int view_height;
int count;
const FlintUIIconRowItem *items;
int icon_size;
int icon_padding;
int gap;
int side_margin;
int bottom_margin;
int max_button_width;
int min_icon_size;
int min_icon_padding;
int min_gap;
} FlintUIBottomIconRow;
typedef struct {
int clicked_index;
int y;
int button_width;
} FlintUIIconRowResult;
typedef struct {
int route;
const char *label;
Texture2D icon;
int active;
int disabled;
} FlintUIBottomNavItem;
typedef struct {
int view_width;
int view_height;
int count;
const FlintUIBottomNavItem *items;
int height;
int icon_size;
int icon_padding;
int side_margin;
int bottom_margin;
int max_button_width;
} FlintUIBottomNav;
typedef struct {
int clicked_index;
int clicked_route;
int y;
int height;
} FlintUIBottomNavResult;
typedef struct {
int route;
const char *label;
Texture2D icon;
} FlintUIBottomNavOption;
typedef struct {
int id;
const char *title;
int *routes;
int *route_count;
int max_route_count;
const char **slot_labels;
const FlintUIBottomNavOption *options;
int option_count;
const char *add_label;
const char *cancel_label;
const char *save_label;
const char *reset_label;
Texture2D close_icon;
} FlintUIBottomNavConfigModal;
typedef struct {
int action;
int changed;
} FlintUIBottomNavConfigResult;
typedef struct {
const char *message;
int width;
int header_h;
int button_h;
int line_gap;
int extra_lines;
int min_height;
int font;
} FlintUIParagraphModalMeasure;
typedef struct {
Texture2D icon;
int disabled;
} FlintUIToolbarAction;
typedef struct {
int id;
int x;
int y;
int width;
int height;
int draw_menu;
const char **options;
int option_count;
int *selected_index;
int dropdown_min_width;
int dropdown_max_width;
int dropdown_height;
const FlintUIToolbarAction *actions;
int action_count;
int action_icon_size;
int action_icon_padding;
int action_gap;
int side_padding;
} FlintUIToolbar;
typedef struct {
int selected_menu_item;
int clicked_action;
} FlintUIToolbarResult;
typedef struct {
FlintUIToolbar toolbar;
Texture2D leading_icon;
int leading_width;
int leading_icon_size;
int leading_icon_padding;
} FlintUIToolbarHeader;
typedef struct {
FlintUIToolbarResult toolbar;
int leading_clicked;
} FlintUIToolbarHeaderResult;
typedef struct {
const char *text;
int font;
Color color;
} FlintUIInfoRow;
typedef struct {
int x;
int y;
int width;
int row_height;
int padding_x;
const FlintUIInfoRow *rows;
int row_count;
Color background;
Color separator;
Color default_text;
} FlintUIInfoRows;
typedef struct {
const char *label;
UIButtonStyle style;
int disabled;
} FlintUIButtonRowItem;
typedef struct {
int x;
int y;
int width;
int height;
int gap;
const FlintUIButtonRowItem *items;
int count;
} FlintUIButtonRow;
typedef struct {
Rectangle bounds;
const char *text;
@@ -98,6 +286,33 @@ typedef struct {
int *commit_pressed;
} FlintUITextField;
typedef struct {
const char *label;
FlintUITextField field;
int label_font;
int label_h;
int field_h;
int gap;
int bottom_gap;
Color label_color;
} FlintUILabelTextField;
typedef struct {
const char *label;
int font;
int info_button;
int icon_diameter;
int height;
Color color;
} FlintUISectionLabel;
typedef struct {
const char *label;
int *value;
int height;
int disabled;
} FlintUICheckboxRow;
typedef struct {
const char *text;
Texture2D icon;
@@ -111,6 +326,8 @@ typedef struct {
typedef struct {
const char *label;
Texture2D icon;
int icon_size;
int disabled;
Color accent;
} FlintUISubtab;
@@ -161,6 +378,31 @@ typedef struct {
int right_clicked;
} FlintUIHeader;
typedef int (*FlintUIScrollPageHeightFn)(int content_width, void *user_data);
typedef struct {
int y;
int height;
int max_content_width;
int min_content_width;
int side_padding;
int *scroll_offset;
int wheel_step;
int scrollbar_x;
int measure_passes;
FlintUIScrollPageHeightFn content_height;
void *user_data;
} FlintUIScrollPageSpec;
typedef struct {
FlintUIScrollArea area;
FlintUIScrollView view;
int content_x;
int content_y;
int content_w;
int content_h;
} FlintUIScrollPage;
typedef void (*FlintUITextInputPlatformCallback)(int active);
void ui_init(int width, int height, float dpi);
@@ -172,9 +414,11 @@ void ui_set_cursor_disabled(int *cursor_disabled);
void ui_set_icons(Texture2D gear_icon, Texture2D x_icon);
void ui_set_input_blocked(int blocked);
int ui_input_captures_click(Vector2 point);
int ui_hover_effects_enabled(void);
/* DPI scaling, color, and layout functions now from Flint: flint_px, flint_clamp_px, flint_lighten, flint_darken, flint_centered_column, flint_page_side_padding */
int flint_ui_font(void);
int flint_ui_font_small(void);
int flint_ui_title_font(const char *title, int max_width);
int flint_ui_text_y(const char *text, int box_y, int box_h, int font);
void flint_ui_draw_text_centered(const char *text, int center_x, int center_y, int font, Color color);
void flint_ui_draw_text_left_in_rect(const char *text, Rectangle rect, int font_size, Color color);
@@ -198,6 +442,23 @@ int ui_icon_btn_size(UIIconSize size);
int ui_icon_btn_padding(UIIconSize size);
int ui_draw_icon_btn(int x, int y, UIIconSize size, Texture2D icon, int *hover);
int ui_draw_icon_btn_padded(int x, int y, int size, int padding, Texture2D icon, int *hover);
int ui_draw_info_button(int center_x, int center_y, int diameter);
int ui_draw_icon_slider_popup(FlintUIIconSliderPopup popup);
FlintUIIconRowResult ui_draw_bottom_icon_row(FlintUIBottomIconRow row);
int ui_bottom_nav_height(void);
FlintUIBottomNavResult ui_draw_bottom_nav(FlintUIBottomNav nav);
FlintUIBottomNavConfigResult ui_draw_bottom_nav_config_modal(FlintUIBottomNavConfigModal modal);
FlintUIToolbarResult ui_draw_toolbar(FlintUIToolbar toolbar);
FlintUIToolbarHeaderResult ui_draw_toolbar_header(FlintUIToolbarHeader header);
void ui_draw_info_rows(FlintUIInfoRows rows);
int ui_label_text_field_height(FlintUILabelTextField row);
int ui_draw_label_text_field(FlintUILabelTextField row, int x, int y, int w);
int ui_section_label_height(FlintUISectionLabel label);
int ui_draw_section_label(FlintUISectionLabel label, int x, int y);
int ui_checkbox_row_height(FlintUICheckboxRow row);
int ui_draw_checkbox_row(FlintUICheckboxRow row, int x, int y);
int ui_button_row_height(FlintUIButtonRow row);
int ui_draw_button_row(FlintUIButtonRow row);
int ui_draw_text_btn(int x, int y, const char *label, int *hover);
/* Generic button component with unified styling */
@@ -222,31 +483,18 @@ int ui_draw_dropdown_button(int id, int x, int y, int w, int h, const char **opt
int ui_draw_dropdown_menu(int id);
int ui_dropdown_captures_click(Vector2 point);
void ui_set_dropdown_clip_top(int top);
void ui_set_dropdown_clip_bottom(int bottom);
int ui_draw_theme_switcher(int x, int y, int w, const char *label,
const char *light_label, const char *dark_label,
int *theme_id, int *dark_mode);
int ui_draw_theme_picker(int x, int y, int w, const char *label,
int dark_mode, int *theme_id);
int ui_theme_picker_height(int w);
typedef struct UITab {
const char *label;
Texture2D icon;
UIIconType icon_type;
} UITab;
typedef struct UITabBar {
UITab *tabs;
int count;
} UITabBar;
int ui_nav_button_width(const char *label, int icon_size, int show_label, int font);
int ui_draw_nav_button(int x, int y, int icon_size, Texture2D icon, const char *label, int show_label, int *hover);
int ui_draw_nav_button_expand(int x, int y, int icon_size, int w, Texture2D icon, const char *label, int show_label, int *hover);
int ui_draw_tab_bar(UITab *tabs, int count);
void ui_draw_tutorial_image_placeholder(const char *label, int x, int y, int w, int h);
void ui_draw_tutorial_image(Texture2D texture, const char *fallback, int x, int y, int w, int h);
int ui_draw_modal(const char *title, const char *message, const char *cancel_btn, const char *confirm_btn);
int ui_draw_modal_3btn(const char *title, const char *message, const char *left_btn, const char *middle_btn, const char *right_btn);
int ui_paragraph_modal_height(FlintUIParagraphModalMeasure measure);
int ui_draw_screen_header(const char *title, int show_close);
int ui_screen_header_height(void);
FlintUIHeader ui_draw_title_header(int height, const char *title,
@@ -262,6 +510,8 @@ int ui_scrollbar_safe_content_width(int content_x, int content_width,
FlintUIScrollView ui_scroll_container_measure(FlintUIScrollArea area);
FlintUIScrollView ui_scroll_container_begin(FlintUIScrollArea area);
void ui_scroll_container_end(FlintUIScrollArea area, FlintUIScrollView view);
FlintUIScrollPage ui_scroll_page_begin(FlintUIScrollPageSpec spec);
void ui_scroll_page_end(FlintUIScrollPage page);
int ui_draw_scrollbar(int x, int y, int viewport_h, int content_h, int *scroll_offset, int max_scroll);
void ui_focus_begin(void);
+34 -30
View File
@@ -105,15 +105,19 @@ static const unsigned char flint_icon_droid[] = {
static const unsigned char flint_icon_edit[] = {
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52,
0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x08, 0x06, 0x00, 0x00, 0x00, 0x1f, 0xf3, 0xff,
0x61, 0x00, 0x00, 0x00, 0x01, 0x73, 0x52, 0x47, 0x42, 0x00, 0xae, 0xce, 0x1c, 0xe9, 0x00, 0x00,
0x00, 0x66, 0x49, 0x44, 0x41, 0x54, 0x38, 0x8d, 0xb5, 0x52, 0x5b, 0x0e, 0xc0, 0x20, 0x08, 0x13,
0xef, 0x7f, 0xe7, 0xed, 0x47, 0x13, 0x84, 0xae, 0x6d, 0x4c, 0xc6, 0xa7, 0xf4, 0x41, 0x91, 0x31,
0x8c, 0x7a, 0x56, 0xa1, 0x5e, 0x38, 0xe4, 0x83, 0x10, 0x21, 0x39, 0x9f, 0xce, 0x68, 0x92, 0xe9,
0x3a, 0x67, 0xf7, 0xdc, 0x83, 0x02, 0x1b, 0x80, 0x08, 0xf5, 0xad, 0x09, 0x54, 0x32, 0x12, 0x39,
0xa6, 0x62, 0x64, 0x16, 0xa9, 0x61, 0xd8, 0x57, 0x59, 0x98, 0x5b, 0xf2, 0xac, 0x20, 0x26, 0x8e,
0xa2, 0xc1, 0x05, 0x65, 0x20, 0x23, 0x43, 0xe7, 0x3c, 0xaa, 0xb3, 0x17, 0x79, 0x48, 0xea, 0x74,
0x65, 0x84, 0xdf, 0x2b, 0x54, 0x46, 0x55, 0x2f, 0xf8, 0xdc, 0x8b, 0xb8, 0x5d, 0x5e, 0xd7, 0x7f,
0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x14, 0x08, 0x06, 0x00, 0x00, 0x00, 0x8d, 0x89, 0x1d,
0x0d, 0x00, 0x00, 0x00, 0x01, 0x73, 0x52, 0x47, 0x42, 0x00, 0xae, 0xce, 0x1c, 0xe9, 0x00, 0x00,
0x00, 0xa6, 0x49, 0x44, 0x41, 0x54, 0x38, 0x8d, 0xb5, 0xd3, 0x51, 0x0e, 0xc3, 0x20, 0x0c, 0x03,
0x50, 0x67, 0xea, 0x41, 0xe1, 0x64, 0x70, 0xd3, 0xf4, 0xa3, 0x43, 0x4b, 0x43, 0xdc, 0x80, 0xb6,
0xf9, 0xaf, 0x2a, 0x7d, 0x32, 0x89, 0x0a, 0xfc, 0x38, 0xb2, 0x7a, 0xb0, 0xb5, 0xa6, 0xf6, 0xb9,
0xd6, 0x1a, 0x7e, 0xbb, 0x04, 0x0e, 0xac, 0x94, 0x02, 0x00, 0xe8, 0xbd, 0x53, 0x34, 0x05, 0x3d,
0x36, 0xc2, 0xd0, 0x47, 0xd0, 0x63, 0x22, 0x22, 0x00, 0xa0, 0xaa, 0xca, 0xd0, 0xd7, 0x6e, 0x33,
0x0b, 0x8f, 0x77, 0x76, 0xbe, 0x21, 0x98, 0x35, 0x8b, 0x50, 0x0a, 0x32, 0x2c, 0x42, 0xa3, 0xdc,
0x40, 0x86, 0xf9, 0x56, 0xfa, 0x0e, 0xf0, 0x99, 0x23, 0x6d, 0xc8, 0x30, 0x8f, 0x5a, 0x2c, 0x5d,
0x0a, 0xc3, 0x46, 0x3b, 0x86, 0xdd, 0x40, 0xbb, 0x29, 0x36, 0xa7, 0x0c, 0x9b, 0x1a, 0xda, 0x8d,
0x79, 0x74, 0x05, 0x9b, 0x40, 0xe0, 0xba, 0xae, 0xdf, 0xe8, 0x2a, 0x16, 0x82, 0x3e, 0x3b, 0x18,
0x00, 0x1c, 0x0c, 0xb0, 0xc8, 0x48, 0x86, 0x4d, 0xa0, 0x07, 0x56, 0x91, 0xbf, 0x46, 0xb2, 0x5f,
0x69, 0x37, 0x47, 0x74, 0xcd, 0x6f, 0x72, 0x02, 0x63, 0x94, 0x8b, 0x26, 0xd7, 0xd9, 0x8c, 0x86,
0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82,
};
@@ -844,17 +848,15 @@ static const unsigned char flint_icon_stack[] = {
static const unsigned char flint_icon_stat[] = {
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52,
0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x08, 0x06, 0x00, 0x00, 0x00, 0x1f, 0xf3, 0xff,
0x61, 0x00, 0x00, 0x00, 0x01, 0x73, 0x52, 0x47, 0x42, 0x00, 0xae, 0xce, 0x1c, 0xe9, 0x00, 0x00,
0x00, 0x6e, 0x49, 0x44, 0x41, 0x54, 0x38, 0x8d, 0xdd, 0x53, 0x41, 0x0e, 0xc0, 0x20, 0x08, 0x2b,
0x8b, 0x2f, 0x52, 0xff, 0xff, 0x35, 0x76, 0x19, 0x4b, 0xc7, 0x20, 0x24, 0x64, 0xa7, 0xf5, 0xa2,
0x52, 0xac, 0x55, 0x04, 0x7b, 0x4d, 0x55, 0x55, 0x45, 0x13, 0x47, 0x67, 0x93, 0x5e, 0x00, 0x80,
0x11, 0x91, 0x3e, 0x26, 0x22, 0xe2, 0x79, 0x8b, 0x3d, 0x1c, 0x30, 0x69, 0x88, 0x44, 0x59, 0xf0,
0x75, 0x05, 0x26, 0x79, 0xcd, 0xb6, 0x19, 0x23, 0x4a, 0xae, 0x44, 0x19, 0xe9, 0x23, 0x56, 0x95,
0x31, 0xbe, 0x55, 0x85, 0xd4, 0x41, 0x76, 0x2a, 0xc7, 0x7d, 0xce, 0xb7, 0x0e, 0x7e, 0x20, 0xc0,
0xf5, 0xae, 0xe6, 0x36, 0xde, 0x1f, 0xa9, 0xdb, 0x91, 0xb2, 0xd7, 0x6c, 0xb7, 0x32, 0x00, 0x9c,
0x73, 0xd6, 0x3f, 0x54, 0x44, 0xc9, 0x6d, 0x34, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44,
0xae, 0x42, 0x60, 0x82,
0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x18, 0x08, 0x06, 0x00, 0x00, 0x00, 0xe0, 0x77, 0x3d,
0xf8, 0x00, 0x00, 0x00, 0x01, 0x73, 0x52, 0x47, 0x42, 0x00, 0xae, 0xce, 0x1c, 0xe9, 0x00, 0x00,
0x00, 0x50, 0x49, 0x44, 0x41, 0x54, 0x48, 0x89, 0xed, 0x94, 0x41, 0x0a, 0x00, 0x20, 0x08, 0x04,
0xd7, 0xe8, 0xff, 0x5f, 0xd0, 0x9f, 0x6e, 0xe7, 0x0e, 0x11, 0x95, 0x42, 0x82, 0x73, 0xd7, 0x51,
0x59, 0x04, 0x8a, 0xef, 0x51, 0x55, 0x92, 0xe4, 0x6d, 0x7d, 0xf3, 0x1c, 0x26, 0xb7, 0x60, 0x75,
0xca, 0x3c, 0x1b, 0xb8, 0x0a, 0x4e, 0x92, 0x35, 0x09, 0x5e, 0x23, 0xb9, 0x15, 0x44, 0x50, 0x82,
0x12, 0x24, 0x10, 0xe4, 0x47, 0xbc, 0x5f, 0xc3, 0xd4, 0x5c, 0x44, 0xba, 0x99, 0x45, 0xf5, 0x07,
0x00, 0x0c, 0x3d, 0xf1, 0x21, 0x64, 0x00, 0x66, 0x6f, 0xaa, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45,
0x4e, 0x44, 0xae, 0x42, 0x60, 0x82,
};
static const unsigned char flint_icon_stripe[] = {
@@ -876,13 +878,15 @@ static const unsigned char flint_icon_sun[] = {
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52,
0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x08, 0x06, 0x00, 0x00, 0x00, 0x1f, 0xf3, 0xff,
0x61, 0x00, 0x00, 0x00, 0x01, 0x73, 0x52, 0x47, 0x42, 0x00, 0xae, 0xce, 0x1c, 0xe9, 0x00, 0x00,
0x00, 0x5f, 0x49, 0x44, 0x41, 0x54, 0x38, 0x8d, 0xa5, 0x53, 0x41, 0x12, 0x00, 0x21, 0x08, 0x8a,
0xfe, 0xff, 0x67, 0xf7, 0xb4, 0x3b, 0xd5, 0x42, 0x61, 0x7a, 0x32, 0x54, 0x68, 0x28, 0xd1, 0x48,
0x44, 0x44, 0x30, 0x1c, 0x00, 0x18, 0xfe, 0x1b, 0x66, 0x04, 0x0a, 0x4f, 0x35, 0x6d, 0xeb, 0x96,
0x82, 0xea, 0x73, 0x87, 0x59, 0x3f, 0xbe, 0xc4, 0x31, 0x68, 0x21, 0x99, 0x13, 0xf7, 0xba, 0x4b,
0xbd, 0x1f, 0x15, 0x0e, 0x22, 0x92, 0xc0, 0x0d, 0x49, 0x30, 0x7a, 0xb2, 0xf3, 0xa7, 0x6e, 0xe2,
0x7b, 0xb8, 0x7d, 0xc6, 0x34, 0x49, 0xe9, 0x37, 0x96, 0xf6, 0x41, 0xe1, 0xd4, 0xb8, 0xcc, 0x3a,
0x3f, 0xfb, 0x0f, 0xaf, 0x73, 0x1a, 0x91, 0x95, 0xf6, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e,
0x00, 0x7f, 0x49, 0x44, 0x41, 0x54, 0x38, 0x8d, 0xa5, 0x53, 0x41, 0x0e, 0xc0, 0x20, 0x08, 0xa3,
0xbe, 0x54, 0x5f, 0xa6, 0x3f, 0x65, 0xa7, 0x1a, 0xd7, 0xe1, 0x30, 0xb1, 0x27, 0xad, 0xb4, 0x82,
0x02, 0x2c, 0x40, 0xef, 0xdd, 0x23, 0xbe, 0xb5, 0x06, 0xe5, 0x3e, 0x04, 0xc5, 0xb5, 0xd6, 0x17,
0x3f, 0xc6, 0x08, 0x4d, 0x5e, 0x1b, 0x15, 0x03, 0x80, 0x99, 0x99, 0xbb, 0xfb, 0xce, 0x04, 0x99,
0x98, 0xd8, 0x99, 0xe0, 0x44, 0xfc, 0x67, 0x82, 0x2c, 0xed, 0x99, 0xea, 0xa6, 0x9c, 0x92, 0xd5,
0xcc, 0x40, 0x72, 0x8c, 0xa1, 0xa6, 0xe8, 0x0d, 0x04, 0x85, 0xba, 0xd6, 0xd8, 0x62, 0x97, 0x98,
0x06, 0x5a, 0xf3, 0xda, 0x07, 0xda, 0x13, 0x6b, 0xec, 0xf5, 0x23, 0xde, 0x7f, 0x23, 0x0f, 0xaf,
0x1a, 0x29, 0x33, 0x39, 0x6a, 0xe5, 0x9d, 0x09, 0x71, 0x34, 0x4c, 0x6a, 0xa2, 0x88, 0xc6, 0xf9,
0x01, 0xde, 0xe5, 0x8f, 0xcd, 0xb7, 0xb6, 0xd5, 0x2d, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e,
0x44, 0xae, 0x42, 0x60, 0x82,
};
@@ -1220,7 +1224,7 @@ const FlintIconAsset flint_icon_assets[] = {
{UI_ICON_TYPE_CHECK, "check", flint_icon_check, 131u},
{UI_ICON_TYPE_DISCORD, "discord", flint_icon_discord, 180u},
{UI_ICON_TYPE_DROID, "droid", flint_icon_droid, 170u},
{UI_ICON_TYPE_EDIT, "edit", flint_icon_edit, 172u},
{UI_ICON_TYPE_EDIT, "edit", flint_icon_edit, 236u},
{UI_ICON_TYPE_EYE_CLOSED, "eye-closed", flint_icon_eye_closed, 157u},
{UI_ICON_TYPE_FDROID, "fdroid", flint_icon_fdroid, 268u},
{UI_ICON_TYPE_FORWARD, "forward", flint_icon_forward, 153u},
@@ -1261,9 +1265,9 @@ const FlintIconAsset flint_icon_assets[] = {
{UI_ICON_TYPE_SOUND3, "sound3", flint_icon_sound3, 278u},
{UI_ICON_TYPE_SRHT, "srht", flint_icon_srht, 233u},
{UI_ICON_TYPE_STACK, "stack", flint_icon_stack, 112u},
{UI_ICON_TYPE_STAT, "stat", flint_icon_stat, 180u},
{UI_ICON_TYPE_STAT, "stat", flint_icon_stat, 150u},
{UI_ICON_TYPE_STRIPE, "stripe", flint_icon_stripe, 180u},
{UI_ICON_TYPE_SUN, "sun", flint_icon_sun, 165u},
{UI_ICON_TYPE_SUN, "sun", flint_icon_sun, 197u},
{UI_ICON_TYPE_TCL, "tcl", flint_icon_tcl, 325u},
{UI_ICON_TYPE_TELEGRAM, "telegram", flint_icon_telegram, 182u},
{UI_ICON_TYPE_TEXT, "text", flint_icon_text, 216u},
+41 -83
View File
@@ -11,6 +11,13 @@
static Font g_flint_text_font = {0};
static Font g_flint_text_small_font = {0};
static int
font_valid(Font font)
{
return font.texture.id != 0 && font.glyphs != NULL && font.recs != NULL &&
font.glyphCount > 0 && font.baseSize > 0;
}
typedef struct FlintChoppedGlyph {
int32_t value;
int32_t x;
@@ -25,9 +32,7 @@ typedef struct FlintChoppedGlyph {
static Font
active_font(void)
{
if(g_flint_text_font.texture.id != 0 && g_flint_text_font.glyphs != NULL &&
g_flint_text_font.recs != NULL && g_flint_text_font.glyphCount > 0 &&
g_flint_text_font.baseSize > 0)
if(font_valid(g_flint_text_font))
return g_flint_text_font;
return GetFontDefault();
@@ -36,25 +41,33 @@ active_font(void)
static Font
active_font_for_size(int font_size)
{
if(font_size <= flint_px(FLINT_TEXT_8) &&
g_flint_text_small_font.texture.id != 0 &&
g_flint_text_small_font.glyphs != NULL &&
g_flint_text_small_font.recs != NULL &&
g_flint_text_small_font.glyphCount > 0 &&
g_flint_text_small_font.baseSize > 0)
if(font_size == FLINT_TEXT_8 && font_valid(g_flint_text_small_font))
return g_flint_text_small_font;
return active_font();
}
static int
font_integer_scale(int font_size)
{
int target_size = flint_px(font_size);
int base_size = FLINT_TEXT_BASE_SIZE;
int scale;
if(target_size < base_size)
target_size = base_size;
scale = (target_size + base_size / 2) / base_size;
return scale > 0 ? scale : 1;
}
static float
font_spacing(Font font, int font_size)
{
(void)font_size;
if(font.baseSize <= 0)
return 1.0f;
float spacing = (float)font_size / (float)font.baseSize;
return spacing > 0.0f ? spacing : 1.0f;
return 1.0f;
}
void
@@ -227,57 +240,15 @@ flint_text_unload_font(Font *font)
*font = (Font){0};
}
int
flint_text_size(int preferred_size)
{
static const int sizes[] = {
FLINT_TEXT_8,
FLINT_TEXT_12,
FLINT_TEXT_14,
FLINT_TEXT_16,
FLINT_TEXT_18,
FLINT_TEXT_20,
FLINT_TEXT_24,
FLINT_TEXT_32
};
int dpi_sizes[sizeof(sizes) / sizeof(sizes[0])];
int best;
int best_delta;
for(size_t i = 0; i < sizeof(sizes) / sizeof(sizes[0]); i++)
dpi_sizes[i] = flint_px(sizes[i]);
best = dpi_sizes[0];
best_delta = abs(preferred_size - best);
for(size_t i = 1; i < sizeof(sizes) / sizeof(sizes[0]); i++) {
int delta = abs(preferred_size - dpi_sizes[i]);
if(delta < best_delta) {
best = dpi_sizes[i];
best_delta = delta;
}
}
return best;
}
int
flint_text_dpi_size(int base_size)
{
return flint_text_size(flint_px(base_size));
}
int
flint_text_measure(const char *text, int font_size)
{
Font font = active_font_for_size(font_size);
Vector2 size;
if(text == NULL || font.texture.id == 0)
return 0;
size = MeasureTextEx(font, text, (float)font_size, font_spacing(font, font_size));
return (int)size.x;
return flint_text_measure_scaled(text, font_integer_scale(font_size));
}
int
@@ -292,7 +263,7 @@ flint_text_height(const char *text, int font_size)
if(text == NULL || text[0] == '\0' || font.texture.id == 0 || font.baseSize <= 0)
return font_size;
scale = (float)font_size / (float)font.baseSize;
scale = (float)font_integer_scale(font_size);
for(int i = 0; text[i] != '\0';) {
int codepoint_byte_count = 0;
int codepoint = GetCodepointNext(&text[i], &codepoint_byte_count);
@@ -321,10 +292,19 @@ flint_text_height(const char *text, int font_size)
}
if(!seen_glyph)
return font_size;
return font.baseSize * font_integer_scale(font_size);
return (int)(max_bottom - min_top + 0.5f);
}
int
flint_text_line_height(int font_size)
{
Font font = active_font_for_size(font_size);
int scale = font_integer_scale(font_size);
return font.baseSize > 0 ? font.baseSize * scale : FLINT_TEXT_BASE_SIZE * scale;
}
int
flint_text_measure_scaled(const char *text, int scale)
{
@@ -354,12 +334,7 @@ flint_text_measure_scaled(const char *text, int scale)
void
flint_text_draw(const char *text, int x, int y, int font_size, Color color)
{
Font font = active_font_for_size(font_size);
if(text == NULL || font.texture.id == 0)
return;
DrawTextEx(font, text, (Vector2){(float)x, (float)y}, (float)font_size, font_spacing(font, font_size), color);
flint_text_draw_scaled(text, x, y, font_integer_scale(font_size), color);
}
void
@@ -402,8 +377,10 @@ flint_text_draw_scaled(const char *text, int x, int y, int scale, Color color)
void
flint_text_draw_centered(const char *text, int center_x, int center_y, int font_size, Color color)
{
Font font = active_font_for_size(font_size);
int actual_size = font.baseSize > 0 ? font.baseSize * font_integer_scale(font_size) : font_size;
int text_w = flint_text_measure(text, font_size);
int y = flint_text_y(text, center_y - font_size / 2, font_size, font_size);
int y = flint_text_y(text, center_y - actual_size / 2, actual_size, font_size);
flint_text_draw(text, center_x - text_w / 2, y, font_size, color);
}
@@ -423,25 +400,6 @@ flint_text_draw_in_rect(const char *text, Rectangle rect, int font_size, Color c
flint_clip_end();
}
void
flint_text_draw_fitted_in_rect(const char *text, Rectangle rect, int preferred_size, int min_size, Color color)
{
const char *value = text != NULL ? text : "";
int font_size = flint_text_size(preferred_size);
int min_allowed = flint_text_size(min_size);
if(min_allowed < min_size)
min_allowed = flint_text_size(min_size + 1);
if(font_size < min_allowed)
font_size = min_allowed;
while(font_size > min_allowed && flint_text_measure(value, font_size) > (int)rect.width)
font_size = flint_text_size(font_size - 1);
flint_text_draw_in_rect(value, rect, font_size, color);
}
int
flint_text_y_scaled(const char *text, int box_y, int box_h, int scale)
{
@@ -466,7 +424,7 @@ flint_text_y(const char *text, int box_y, int box_h, int font_size)
if(text == NULL || text[0] == '\0' || font.texture.id == 0 || font.baseSize <= 0)
return box_y + (int)(((float)box_h - (float)font_size) * 0.5f + 0.5f);
scale = (float)font_size / (float)font.baseSize;
scale = (float)font_integer_scale(font_size);
for(int i = 0; text[i] != '\0';) {
int codepoint_byte_count = 0;
+10 -3
View File
@@ -142,7 +142,13 @@ flint_text_layout_reflow(FlintTextLayout *layout, int max_width, int font_size,
layout->line_widths[layout->line_count] = current_line_width;
layout->line_count++;
layout->total_height = layout->line_count > 0 ? layout->line_count * font_size + (layout->line_count - 1) * line_height : 0;
{
int drawn_line_height = flint_text_line_height(font_size);
layout->total_height = layout->line_count > 0
? layout->line_count * drawn_line_height +
(layout->line_count - 1) * line_height
: 0;
}
layout->line_height = line_height; /* Store for later use in draw */
}
@@ -157,11 +163,12 @@ flint_text_layout_draw(FlintTextLayout *layout, int x, int *y, int font_size, Co
int space_width = flint_text_measure(" ", font_size);
int icon_spacing = flint_px(4);
int line_spacing = (layout->line_height > 0) ? layout->line_height : flint_px(4);
int drawn_line_height = flint_text_line_height(font_size);
int next_break_line = 1;
for(int i = 0; i < layout->element_count; i++) {
if(next_break_line <= layout->line_count && next_break_line > 0 && i == layout->line_breaks[next_break_line]) {
current_y += font_size + line_spacing;
current_y += drawn_line_height + line_spacing;
current_x = x;
next_break_line++;
}
@@ -191,7 +198,7 @@ flint_text_layout_draw(FlintTextLayout *layout, int x, int *y, int font_size, Co
}
}
*y = current_y + font_size;
*y = current_y + drawn_line_height;
}
int
+9 -3
View File
@@ -23,7 +23,9 @@ const FlintThemeMeta flint_themes[FLINT_THEME_COUNT] = {
[FLINT_THEME_DAWN] = {"Dawn", "dawn_light", "dawn_dark"},
[FLINT_THEME_SAGE] = {"Sage", "sage_light", "sage_dark"},
[FLINT_THEME_INK] = {"Sepia", "ink_light", "ink_dark"},
[FLINT_THEME_MONO] = {"Mono", "mono_light", "mono_dark"}
[FLINT_THEME_MONO] = {"Mono", "mono_light", "mono_dark"},
[FLINT_THEME_MINT] = {"Mint", "mint_light", "mint_dark"},
[FLINT_THEME_COBALT] = {"Cobalt", "cobalt_light", "cobalt_dark"}
};
static const FlintThemeCatalogColors catalog_light[FLINT_THEME_COUNT] = {
@@ -36,7 +38,9 @@ static const FlintThemeCatalogColors catalog_light[FLINT_THEME_COUNT] = {
[FLINT_THEME_DAWN] = {{0xF5,0xE9,0xDF,0xFF}, {0xE7,0xD9,0xD0,0xFF}, {0x39,0x3B,0x4A,0xFF}, {0xE0,0x7A,0x6D,0xFF}, {0x8F,0xCF,0xC6,0xFF}, {0x62,0xB8,0xB0,0xFF}, {0xF5,0xE9,0xDF,0xFF}, {0xC8,0x62,0x5C,0xFF}},
[FLINT_THEME_SAGE] = {{0xE8,0xEC,0xDF,0xFF}, {0xD9,0xE0,0xD0,0xFF}, {0x35,0x44,0x38,0xFF}, {0x82,0xA0,0x7D,0xFF}, {0xB6,0xC9,0xA6,0xFF}, {0x94,0xAF,0x84,0xFF}, {0xE8,0xEC,0xDF,0xFF}, {0x5D,0x82,0x68,0xFF}},
[FLINT_THEME_INK] = {{0xF3,0xE4,0xC8,0xFF}, {0xE4,0xCF,0xAA,0xFF}, {0x3F,0x2B,0x1C,0xFF}, {0xB8,0x76,0x3F,0xFF}, {0xD8,0xB0,0x72,0xFF}, {0xC7,0x91,0x51,0xFF}, {0xF8,0xEE,0xD6,0xFF}, {0x8F,0x5B,0x2F,0xFF}},
[FLINT_THEME_MONO] = {{0xFF,0xFF,0xFF,0xFF}, {0xEF,0xEF,0xEF,0xFF}, {0x00,0x00,0x00,0xFF}, {0x00,0x00,0x00,0xFF}, {0xDD,0xDD,0xDD,0xFF}, {0xC8,0xC8,0xC8,0xFF}, {0xFF,0xFF,0xFF,0xFF}, {0x00,0x00,0x00,0xFF}}
[FLINT_THEME_MONO] = {{0xFF,0xFF,0xFF,0xFF}, {0xEF,0xEF,0xEF,0xFF}, {0x00,0x00,0x00,0xFF}, {0x00,0x00,0x00,0xFF}, {0xDD,0xDD,0xDD,0xFF}, {0xC8,0xC8,0xC8,0xFF}, {0xFF,0xFF,0xFF,0xFF}, {0x00,0x00,0x00,0xFF}},
[FLINT_THEME_MINT] = {{0xE4,0xF4,0xEE,0xFF}, {0xD2,0xE7,0xDF,0xFF}, {0x1E,0x45,0x3A,0xFF}, {0x4B,0xB6,0x9A,0xFF}, {0x98,0xD8,0xC6,0xFF}, {0x70,0xC7,0xB2,0xFF}, {0xE4,0xF4,0xEE,0xFF}, {0x2D,0x8F,0x78,0xFF}},
[FLINT_THEME_COBALT] = {{0xE7,0xEA,0xF4,0xFF}, {0xD7,0xDD,0xEC,0xFF}, {0x19,0x27,0x4A,0xFF}, {0x4F,0x67,0xC8,0xFF}, {0xA9,0xB8,0xEF,0xFF}, {0x7D,0x92,0xE0,0xFF}, {0xE7,0xEA,0xF4,0xFF}, {0x35,0x4F,0xB5,0xFF}}
};
static const FlintThemeCatalogColors catalog_dark[FLINT_THEME_COUNT] = {
@@ -49,7 +53,9 @@ static const FlintThemeCatalogColors catalog_dark[FLINT_THEME_COUNT] = {
[FLINT_THEME_DAWN] = {{0x27,0x22,0x2C,0xFF}, {0x35,0x2D,0x38,0xFF}, {0xE9,0xC7,0xB7,0xFF}, {0xB8,0x5F,0x60,0xFF}, {0x3A,0x6B,0x70,0xFF}, {0x4D,0x83,0x85,0xFF}, {0xE9,0xC7,0xB7,0xFF}, {0xD0,0x72,0x67,0xFF}},
[FLINT_THEME_SAGE] = {{0x1F,0x2A,0x22,0xFF}, {0x2D,0x3A,0x30,0xFF}, {0xC7,0xD4,0xC0,0xFF}, {0x5F,0x81,0x65,0xFF}, {0x3C,0x54,0x40,0xFF}, {0x4E,0x66,0x50,0xFF}, {0xC7,0xD4,0xC0,0xFF}, {0x8B,0xA0,0x70,0xFF}},
[FLINT_THEME_INK] = {{0x25,0x1A,0x12,0xFF}, {0x33,0x24,0x18,0xFF}, {0xF1,0xD8,0xB0,0xFF}, {0xA3,0x65,0x32,0xFF}, {0x5A,0x3C,0x24,0xFF}, {0x72,0x4B,0x2C,0xFF}, {0xF1,0xD8,0xB0,0xFF}, {0xD5,0x91,0x52,0xFF}},
[FLINT_THEME_MONO] = {{0x00,0x00,0x00,0xFF}, {0x12,0x12,0x12,0xFF}, {0xFF,0xFF,0xFF,0xFF}, {0xFF,0xFF,0xFF,0xFF}, {0x22,0x22,0x22,0xFF}, {0x3A,0x3A,0x3A,0xFF}, {0xFF,0xFF,0xFF,0xFF}, {0xFF,0xFF,0xFF,0xFF}}
[FLINT_THEME_MONO] = {{0x00,0x00,0x00,0xFF}, {0x12,0x12,0x12,0xFF}, {0xFF,0xFF,0xFF,0xFF}, {0xFF,0xFF,0xFF,0xFF}, {0x22,0x22,0x22,0xFF}, {0x3A,0x3A,0x3A,0xFF}, {0xFF,0xFF,0xFF,0xFF}, {0xFF,0xFF,0xFF,0xFF}},
[FLINT_THEME_MINT] = {{0x12,0x2D,0x28,0xFF}, {0x1B,0x3B,0x34,0xFF}, {0xB9,0xE4,0xD5,0xFF}, {0x2E,0x82,0x72,0xFF}, {0x25,0x55,0x4B,0xFF}, {0x32,0x69,0x5E,0xFF}, {0xB9,0xE4,0xD5,0xFF}, {0x6E,0xC8,0xB0,0xFF}},
[FLINT_THEME_COBALT] = {{0x12,0x18,0x33,0xFF}, {0x1B,0x24,0x45,0xFF}, {0xC2,0xCC,0xF5,0xFF}, {0x38,0x4C,0xA8,0xFF}, {0x27,0x35,0x73,0xFF}, {0x34,0x45,0x8B,0xFF}, {0xC2,0xCC,0xF5,0xFF}, {0x8E,0xA0,0xF0,0xFF}}
};
FlintThemeId
+98
View File
@@ -0,0 +1,98 @@
#include "flint_transition.h"
#include <stddef.h>
void
flint_transition_reset(FlintTransition *transition)
{
if(transition == NULL)
return;
transition->active = 0;
transition->phase = FLINT_TRANSITION_NONE;
transition->ticks = 0;
transition->duration = 0;
}
void
flint_transition_begin(FlintTransition *transition, int duration)
{
if(transition == NULL)
return;
if(duration <= 0)
duration = 1;
transition->active = 1;
transition->phase = FLINT_TRANSITION_OUT;
transition->ticks = 0;
transition->duration = duration;
}
void
flint_transition_reverse_to_out(FlintTransition *transition)
{
if(transition == NULL || !transition->active)
return;
if(transition->phase == FLINT_TRANSITION_IN) {
transition->phase = FLINT_TRANSITION_OUT;
transition->ticks = transition->duration - transition->ticks;
if(transition->ticks < 0)
transition->ticks = 0;
}
}
float
flint_transition_alpha(const FlintTransition *transition)
{
float progress;
if(transition == NULL || !transition->active || transition->duration <= 0)
return 0.0f;
progress = (float)transition->ticks / (float)transition->duration;
if(progress < 0.0f)
progress = 0.0f;
if(progress > 1.0f)
progress = 1.0f;
if(transition->phase == FLINT_TRANSITION_OUT)
return progress;
if(transition->phase == FLINT_TRANSITION_IN)
return 1.0f - progress;
return 0.0f;
}
int
flint_transition_step(FlintTransition *transition)
{
if(transition == NULL || !transition->active)
return FLINT_TRANSITION_NONE;
transition->ticks++;
if(transition->ticks < transition->duration)
return FLINT_TRANSITION_NONE;
if(transition->phase == FLINT_TRANSITION_OUT) {
transition->phase = FLINT_TRANSITION_IN;
transition->ticks = 0;
return FLINT_TRANSITION_OUT;
}
flint_transition_reset(transition);
return FLINT_TRANSITION_IN;
}
void
flint_transition_draw_fade(const FlintTransition *transition,
int width, int height, Color color)
{
int alpha;
if(transition == NULL || !transition->active)
return;
alpha = (int)(flint_transition_alpha(transition) * 255.0f);
if(alpha <= 0)
return;
if(alpha > 255)
alpha = 255;
color.a = (unsigned char)(((int)color.a * alpha) / 255);
if(color.a == 0)
return;
DrawRectangle(0, 0, width, height, color);
}
+173 -1403
View File
File diff suppressed because it is too large. Load diff
+249
View File
@@ -0,0 +1,249 @@
#include "ui.h"
int
ui_bottom_nav_height(void)
{
return flint_px(40);
}
FlintUIBottomNavResult
ui_draw_bottom_nav(FlintUIBottomNav nav)
{
FlintUIBottomNavResult result = {-1, -1, 0, 0};
int count = nav.count;
int height = nav.height > 0 ? nav.height : ui_bottom_nav_height();
int bottom_margin = nav.bottom_margin > 0 ? nav.bottom_margin : 0;
int side_margin = nav.side_margin > 0 ? nav.side_margin : 0;
int icon_size = nav.icon_size > 0 ? nav.icon_size : flint_px(22);
int y = nav.view_height - bottom_margin - height;
int available_w = nav.view_width - side_margin * 2;
int tab_w;
int group_w;
int start_x;
result.y = y;
result.height = height;
if(nav.items == NULL || count <= 0 || nav.view_width <= 0 || nav.view_height <= 0)
return result;
if(count > 8)
count = 8;
if(available_w < flint_px(96))
available_w = flint_px(96);
tab_w = available_w / count;
if(tab_w < flint_px(56))
tab_w = flint_px(56);
group_w = tab_w * count;
if(group_w > available_w)
group_w = available_w;
tab_w = group_w / count;
start_x = side_margin + (available_w - group_w) / 2;
DrawRectangle(0, y, nav.view_width, height, flint_darken(c_bg, 10));
DrawLine(0, y, nav.view_width, y, flint_darken(c_bg, 42));
for(int i = 0; i < count; i++) {
const FlintUIBottomNavItem *item = &nav.items[i];
int x = start_x + i * tab_w;
int w = i == count - 1 ? start_x + group_w - x : tab_w;
int icon_x = x + (w - icon_size) / 2;
int icon_y = y + (height - icon_size) / 2;
int hover = 0;
UIButtonStyle style = item->active
? UI_BUTTON_STYLE_TAB_SELECTED
: UI_BUTTON_STYLE_TAB;
Color icon_color = item->disabled ? flint_darken(c_icon, 40) : c_icon;
if(ui_draw_generic_button(x, y, w, height, "", style,
item->disabled, &hover)) {
result.clicked_index = i;
result.clicked_route = item->route;
}
if(item->icon.id != 0) {
DrawTexturePro(item->icon,
(Rectangle){0, 0, item->icon.width, item->icon.height},
(Rectangle){icon_x, icon_y, icon_size, icon_size},
(Vector2){0}, 0, icon_color);
}
}
return result;
}
static int
bottom_nav_option_index(const FlintUIBottomNavOption *options, int option_count,
int route)
{
if(options == NULL || option_count <= 0)
return 0;
for(int i = 0; i < option_count; i++) {
if(options[i].route == route)
return i;
}
return 0;
}
FlintUIBottomNavConfigResult
ui_draw_bottom_nav_config_modal(FlintUIBottomNavConfigModal modal)
{
static int route_scroll_offset = 0;
FlintUIBottomNavConfigResult result = {0, 0};
FlintUIPanelFrame frame;
FlintUIScrollArea route_area;
FlintUIScrollView route_view;
const char *option_labels[16];
int option_count = modal.option_count;
int route_count = modal.route_count != NULL ? *modal.route_count : 0;
int max_route_count = modal.max_route_count > 0 ? modal.max_route_count : route_count;
int selected[16] = {0};
int row_h = flint_px(58);
int dropdown_h = flint_px(36);
int remove_w = flint_px(36);
int add_h = flint_px(34);
int button_h = flint_px(36);
int button_gap = flint_px(8);
int y;
int button_w;
int total_button_w;
int button_y;
int add_y;
int add_w;
int route_view_h;
int route_content_h;
int reset_hover = 0;
int cancel_hover = 0;
int save_hover = 0;
int dropdown_blocks_buttons;
if(max_route_count > 16)
max_route_count = 16;
if(route_count < 0)
route_count = 0;
if(route_count > max_route_count)
route_count = max_route_count;
if(option_count > 16)
option_count = 16;
for(int i = 0; i < option_count; i++)
option_labels[i] = modal.options[i].label;
for(int i = 0; i < route_count; i++)
selected[i] = bottom_nav_option_index(modal.options, option_count,
modal.routes != NULL ? modal.routes[i] : 0);
frame = ui_draw_modal_frame(flint_px(340),
flint_px(128) + row_h * route_count + add_h + flint_px(58),
modal.title,
(Texture2D){0},
modal.close_icon);
if(frame.right_clicked) {
result.action = 1;
return result;
}
button_w = (frame.content_w - button_gap * 2) / 3;
if(button_w > flint_px(92))
button_w = flint_px(92);
total_button_w = button_w * 3 + button_gap * 2;
button_y = frame.y + frame.h - button_h - flint_px(16);
add_y = button_y - button_gap - add_h;
route_view_h = add_y - frame.content_y - flint_px(12);
if(route_view_h < row_h)
route_view_h = row_h;
if(frame.content_y + route_view_h > add_y - flint_px(8))
route_view_h = add_y - frame.content_y - flint_px(8);
if(route_view_h < flint_px(48))
route_view_h = flint_px(48);
route_content_h = row_h * route_count;
route_area = (FlintUIScrollArea){
.bounds = {
(float)frame.content_x,
(float)frame.content_y,
(float)frame.content_w,
(float)route_view_h
},
.content_height = route_content_h,
.content_x = frame.content_x,
.content_width = frame.content_w,
.scroll_offset = &route_scroll_offset,
.wheel_step = row_h,
.scrollbar_x = frame.content_x + frame.content_w - flint_px(8)
};
route_view = ui_scroll_container_begin(route_area);
y = route_view.content_y;
for(int i = 0; i < route_count; i++) {
const char *slot_label = modal.slot_labels != NULL && modal.slot_labels[i] != NULL
? modal.slot_labels[i]
: "";
int remove_hover = 0;
flint_text_draw(slot_label, frame.content_x, y, flint_ui_font(), c_text);
ui_draw_dropdown_button(modal.id + i, frame.content_x,
y + flint_px(22), frame.content_w - remove_w - flint_px(8),
dropdown_h, option_labels, option_count,
&selected[i]);
if(ui_draw_icon_btn_padded(frame.content_x + frame.content_w - remove_w,
y + flint_px(22), flint_px(20),
flint_px(8), modal.close_icon,
&remove_hover)) {
for(int j = i; j < route_count - 1; j++)
modal.routes[j] = modal.routes[j + 1];
route_count--;
if(modal.route_count != NULL)
*modal.route_count = route_count;
result.changed = 1;
break;
}
y += row_h;
}
ui_scroll_container_end(route_area, route_view);
ui_set_dropdown_clip_top(frame.content_y);
ui_set_dropdown_clip_bottom(add_y - flint_px(8));
y = add_y;
dropdown_blocks_buttons = ui_dropdown_captures_click(ui_mouse_world());
if(route_count < max_route_count && modal.routes != NULL) {
int add_hover = 0;
add_w = frame.content_w < flint_px(180) ? frame.content_w : flint_px(180);
if(ui_draw_generic_button(frame.content_x + (frame.content_w - add_w) / 2,
y, add_w, add_h, modal.add_label,
UI_BUTTON_STYLE_SECONDARY,
dropdown_blocks_buttons, &add_hover)) {
modal.routes[route_count] = option_count > 0 ? modal.options[0].route : 0;
route_count++;
if(modal.route_count != NULL)
*modal.route_count = route_count;
result.changed = 1;
}
}
{
int x = frame.x + (frame.w - total_button_w) / 2;
if(ui_draw_generic_button(x, button_y, button_w, button_h,
modal.reset_label, UI_BUTTON_STYLE_SECONDARY,
dropdown_blocks_buttons, &reset_hover))
result.action = 3;
x += button_w + button_gap;
if(ui_draw_generic_button(x, button_y, button_w, button_h,
modal.cancel_label, UI_BUTTON_STYLE_SECONDARY,
dropdown_blocks_buttons, &cancel_hover))
result.action = 1;
x += button_w + button_gap;
if(ui_draw_generic_button(x, button_y, button_w, button_h,
modal.save_label, UI_BUTTON_STYLE_PRIMARY,
dropdown_blocks_buttons, &save_hover))
result.action = 2;
}
for(int i = 0; i < route_count; i++) {
if(ui_draw_dropdown_menu(modal.id + i) &&
modal.routes != NULL && selected[i] >= 0 && selected[i] < option_count) {
modal.routes[i] = modal.options[selected[i]].route;
result.changed = 1;
}
}
ui_set_dropdown_clip_top(0);
ui_set_dropdown_clip_bottom(0);
return result;
}
+412
View File
@@ -0,0 +1,412 @@
#include "ui.h"
/* Per-dropdown state to track open/closed and click handling */
#define MAX_DROPDOWN_OPTIONS 128
#define DROPDOWN_OPTION_TEXT_SIZE 256
typedef struct UIDropdownState {
int id;
int open;
int just_opened;
int scroll_offset;
int x, y, w, h;
const char *options[MAX_DROPDOWN_OPTIONS];
char option_text[MAX_DROPDOWN_OPTIONS][DROPDOWN_OPTION_TEXT_SIZE];
int option_count;
int *selected_index;
int touch_pressed;
int touch_press_start_y;
int touch_drag_active;
} UIDropdownState;
#define MAX_DROPDOWNS 24
static UIDropdownState dropdown_states[MAX_DROPDOWNS];
static int dropdown_state_count = 0;
static int dropdown_clip_top = 0;
static int dropdown_clip_bottom = 0;
static Color
ui_dropdown_panel_color(int amount)
{
int luminance = ((int)c_bg.r + (int)c_bg.g + (int)c_bg.b) / 3;
return luminance < 96 ? flint_lighten(c_bg, amount) : flint_darken(c_bg, amount);
}
void
ui_set_dropdown_clip_top(int top)
{
dropdown_clip_top = top > 0 ? top : 0;
}
void
ui_set_dropdown_clip_bottom(int bottom)
{
dropdown_clip_bottom = bottom > 0 ? bottom : 0;
}
static void
dropdown_menu_layout(const UIDropdownState *state, int *dropdown_y, int *dropdown_h,
int *visible_options, int *open_up)
{
int option_h;
int menu_gap;
int padding_top;
int padding_bottom;
int below_y;
int below_space;
int above_space;
int bottom_limit;
int max_visible_h;
int total_h;
if(state == NULL || dropdown_y == NULL || dropdown_h == NULL)
return;
option_h = state->h;
menu_gap = flint_px(4);
padding_top = flint_px(4);
padding_bottom = flint_px(4);
total_h = padding_top + option_h * state->option_count + padding_bottom;
below_y = state->y + state->h + menu_gap;
if(below_y < dropdown_clip_top)
below_y = dropdown_clip_top;
bottom_limit = dropdown_clip_bottom > 0 ? dropdown_clip_bottom : ui_view_height;
below_space = bottom_limit - below_y - flint_px(16);
above_space = state->y - dropdown_clip_top - flint_px(16);
if(below_space < 0)
below_space = 0;
if(above_space < 0)
above_space = 0;
if(open_up != NULL)
*open_up = (above_space > below_space);
max_visible_h = (above_space > below_space) ? above_space : below_space;
if(total_h > max_visible_h) {
int count = (max_visible_h - flint_px(8)) / option_h;
if(count < 1)
count = 1;
total_h = count * option_h + flint_px(8);
if(visible_options != NULL)
*visible_options = count;
} else if(visible_options != NULL) {
*visible_options = state->option_count;
}
if(open_up != NULL && *open_up)
*dropdown_y = state->y - menu_gap - total_h;
else
*dropdown_y = below_y;
*dropdown_h = total_h;
}
int
ui_dropdown_captures_click(Vector2 point)
{
(void)point;
for(int i = 0; i < dropdown_state_count; i++) {
UIDropdownState *state = &dropdown_states[i];
if(state->open && state->option_count > 0)
return 1;
}
return 0;
}
static UIDropdownState *
get_or_create_dropdown_state(int id)
{
/* Find existing state */
for(int i = 0; i < dropdown_state_count; i++) {
if(dropdown_states[i].id == id)
return &dropdown_states[i];
}
/* Create new state */
if(dropdown_state_count < MAX_DROPDOWNS) {
dropdown_states[dropdown_state_count].id = id;
dropdown_states[dropdown_state_count].open = 0;
dropdown_states[dropdown_state_count].just_opened = 0;
dropdown_states[dropdown_state_count].scroll_offset = 0;
dropdown_states[dropdown_state_count].option_count = 0;
dropdown_states[dropdown_state_count].selected_index = NULL;
dropdown_states[dropdown_state_count].touch_pressed = 0;
dropdown_states[dropdown_state_count].touch_press_start_y = 0;
dropdown_states[dropdown_state_count].touch_drag_active = 0;
return &dropdown_states[dropdown_state_count++];
}
/* Fallback - use first slot */
dropdown_states[0].id = id;
return &dropdown_states[0];
}
int
ui_draw_dropdown_button(int id, int x, int y, int w, int h,
const char **options, int option_count, int *selected_index)
{
UIDropdownState *state = get_or_create_dropdown_state(id);
int font = flint_ui_font();
int arrow_pad = flint_px(24);
int arrow_size = flint_px(6);
int changed = 0;
Rectangle btn_bounds = {x, y, w, h};
Vector2 mouse = ui_mouse_world();
Color button_bg;
int button_inside = CheckCollisionPointRec(mouse, btn_bounds);
int active = button_inside &&
(state->open
? !ui_base_input_captures_click(mouse, 1)
: !ui_input_captures_click(mouse));
int hover = active && ui_hover_effects_enabled();
/* Calculate arrow position */
int arrow_x = x + w - arrow_pad;
int arrow_y = y + h / 2;
/* Store state for menu drawing */
state->x = x;
state->y = y;
state->w = w;
state->h = h;
state->selected_index = selected_index;
if(option_count < 0)
option_count = 0;
if(option_count > MAX_DROPDOWN_OPTIONS)
option_count = MAX_DROPDOWN_OPTIONS;
state->option_count = option_count;
for(int i = 0; i < option_count; i++) {
snprintf(state->option_text[i], sizeof(state->option_text[i]), "%s",
options != NULL && options[i] != NULL ? options[i] : "");
state->options[i] = state->option_text[i];
}
if(active)
ui_mark_clickable();
/* Handle click on button */
if(active && IsMouseButtonReleased(MOUSE_BUTTON_LEFT)) {
state->open = !state->open;
if(state->open) {
state->just_opened = 1;
state->scroll_offset = 0;
state->touch_drag_active = 0;
}
}
/* Draw button background */
button_bg = state->open ? ui_dropdown_panel_color(28)
: (hover ? c_button_hover : ui_dropdown_panel_color(16));
DrawRectangleRec(btn_bounds, button_bg);
ui_draw_bevel(x, y, w, h,
state->open ? flint_lighten(button_bg, 34) : flint_lighten(button_bg, 24),
state->open ? flint_darken(button_bg, 38) : flint_darken(button_bg, 30));
/* Draw current selection text, clipped before the X icon. */
int current_index = selected_index != NULL ? *selected_index : 0;
if(current_index < 0 || current_index >= option_count)
current_index = 0;
const char *current_name = option_count > 0 ? state->options[current_index] : "";
int text_x = x + flint_px(12);
int text_w = arrow_x - arrow_size - flint_px(8) - text_x;
if(text_w > 0) {
flint_clip_begin((int)(g_ui_camera.offset.x + (float)text_x * g_ui_camera.zoom),
(int)(g_ui_camera.offset.y + (float)y * g_ui_camera.zoom),
(int)((float)text_w * g_ui_camera.zoom),
(int)((float)h * g_ui_camera.zoom));
flint_text_draw(current_name, text_x, flint_ui_text_y(current_name, y, h, font), font, c_text);
flint_clip_end();
}
/* Draw dropdown X icon */
int x_size = arrow_size;
int x_half = x_size / 2;
int x1 = arrow_x - x_half;
int x2 = arrow_x + x_half;
int y1 = arrow_y - x_half;
int y2 = arrow_y + x_half;
DrawLine(x1, y1, x2, y2, c_text);
DrawLine(x1, y2, x2, y1, c_text);
return changed;
}
int
ui_draw_dropdown_menu(int id)
{
UIDropdownState *state = get_or_create_dropdown_state(id);
int changed = 0;
if(!state->open || state->option_count <= 0 || state->selected_index == NULL)
return 0;
int font = flint_ui_font();
int x = state->x;
int y = state->y;
int w = state->w;
int h = state->h;
int option_h = h;
int option_count = state->option_count;
int *selected_index = state->selected_index;
const char **options = state->options;
int dropdown_y = 0;
int dropdown_h = 0;
int padding_top = flint_px(4);
int padding_bottom = flint_px(4);
int content_h = padding_top + option_h * option_count + padding_bottom;
int max_scroll;
int scrollbar_w = flint_px(8);
int option_w = w;
dropdown_menu_layout(state, &dropdown_y, &dropdown_h, NULL, NULL);
max_scroll = content_h - dropdown_h;
if(max_scroll < 0)
max_scroll = 0;
if(state->scroll_offset > max_scroll)
state->scroll_offset = max_scroll;
if(state->scroll_offset < 0)
state->scroll_offset = 0;
if(max_scroll > 0)
option_w = w - scrollbar_w - flint_px(2);
Rectangle menu_bounds = {x, dropdown_y, w, dropdown_h};
Rectangle btn_bounds = {x, y, w, h};
Vector2 mouse = ui_mouse_world();
int my = (int)mouse.y;
int pointer_in_dropdown = CheckCollisionPointRec(mouse, btn_bounds) ||
CheckCollisionPointRec(mouse, menu_bounds);
/* Track pointer movement to distinguish click from drag */
if(IsMouseButtonDown(MOUSE_BUTTON_LEFT)) {
if(!state->touch_pressed && pointer_in_dropdown) {
/* Pointer just went down - reset drag state */
state->touch_pressed = 1;
state->touch_press_start_y = my;
state->touch_drag_active = 0;
} else if(!state->touch_drag_active) {
/* Check if movement exceeded threshold (making it a drag, not a click) */
int dy = my - state->touch_press_start_y;
if(abs(dy) > flint_px(8)) { /* 8px threshold */
state->touch_drag_active = 1;
}
}
/* If dragging, scroll the dropdown */
if(state->touch_drag_active && max_scroll > 0) {
int dy = my - state->touch_press_start_y;
state->scroll_offset -= dy;
/* Update start position for continuous scrolling */
state->touch_press_start_y = my;
/* Clamp scroll offset */
if(state->scroll_offset < 0)
state->scroll_offset = 0;
if(state->scroll_offset > max_scroll)
state->scroll_offset = max_scroll;
}
} else if(state->touch_pressed) {
/* Pointer just released - only reset touch_pressed, keep touch_drag_active for selection check */
state->touch_pressed = 0;
}
/* Click outside closes dropdown */
if(IsMouseButtonPressed(MOUSE_BUTTON_LEFT)) {
if(!state->just_opened &&
!CheckCollisionPointRec(mouse, btn_bounds) &&
!CheckCollisionPointRec(mouse, menu_bounds)) {
state->open = 0;
state->touch_drag_active = 0;
state->touch_pressed = 0;
}
}
if(state->just_opened && !IsMouseButtonPressed(MOUSE_BUTTON_LEFT))
state->just_opened = 0;
if(CheckCollisionPointRec(mouse, menu_bounds)) {
float wheel = GetMouseWheelMove();
if(wheel != 0.0f && max_scroll > 0) {
state->scroll_offset -= (int)(wheel * (float)option_h);
if(state->scroll_offset < 0)
state->scroll_offset = 0;
if(state->scroll_offset > max_scroll)
state->scroll_offset = max_scroll;
}
}
/* Draw dropdown background */
DrawRectangle(x, dropdown_y, w, dropdown_h, ui_dropdown_panel_color(18));
ui_draw_bevel(x, dropdown_y, w, dropdown_h,
ui_dropdown_panel_color(32), ui_dropdown_panel_color(8));
flint_clip_begin((int)(g_ui_camera.offset.x + (float)x * g_ui_camera.zoom),
(int)(g_ui_camera.offset.y + (float)dropdown_y * g_ui_camera.zoom),
(int)((float)w * g_ui_camera.zoom),
(int)((float)dropdown_h * g_ui_camera.zoom));
/* Draw options */
for(int i = 0; i < option_count; i++) {
int option_y = dropdown_y + padding_top + i * option_h - state->scroll_offset;
Rectangle option_bounds = {x, option_y, option_w, option_h};
/* Skip if outside visible area - use inclusive bounds for last item */
if(option_y + option_h < dropdown_y || option_y >= dropdown_y + dropdown_h)
continue;
int option_active = CheckCollisionPointRec(mouse, option_bounds);
int option_hover = option_active && ui_hover_effects_enabled();
if(option_active) {
if(option_hover)
DrawRectangle(x, option_y, w, option_h, c_button_hover);
ui_mark_clickable();
if(IsMouseButtonReleased(MOUSE_BUTTON_LEFT) && !state->just_opened && !state->touch_drag_active) {
*selected_index = i;
state->open = 0;
state->just_opened = 0;
state->touch_drag_active = 0;
state->touch_pressed = 0;
state->scroll_offset = 0;
changed = 1;
flint_clip_end();
goto draw_arrow;
}
}
flint_text_draw(options[i], x + flint_px(12), flint_ui_text_y(options[i], option_y, option_h, font), font, c_text);
}
flint_clip_end();
if(max_scroll > 0)
ui_draw_scrollbar(x + w - scrollbar_w, dropdown_y + flint_px(2),
dropdown_h - flint_px(4), content_h, &state->scroll_offset, max_scroll);
draw_arrow:
;
/* Redraw arrow on top of everything */
int arrow_pad = flint_px(24);
int arrow_size = flint_px(6);
int arrow_x = x + w - arrow_pad;
int arrow_y = y + h / 2;
/* Draw dropdown X icon */
int x_size = arrow_size;
int x_half = x_size / 2;
int x1 = arrow_x - x_half;
int x2 = arrow_x + x_half;
int y1 = arrow_y - x_half;
int y2 = arrow_y + x_half;
DrawLine(x1, y1, x2, y2, c_text);
DrawLine(x1, y2, x2, y1, c_text);
return changed;
}
/* ================================================================
* TUTORIAL HELPERS
* ================================================================ */
+113
View File
@@ -0,0 +1,113 @@
#include "ui.h"
int
ui_draw_icon_slider_popup(FlintUIIconSliderPopup popup)
{
int hover = 0;
int popup_w;
int popup_h;
int popup_x;
int popup_y;
Vector2 mouse;
if(popup.open == NULL || popup.value == NULL)
return 0;
if(ui_draw_icon_btn_padded(popup.x, popup.y, popup.icon_size,
popup.icon_padding, popup.icon, &hover))
*popup.open = !*popup.open;
if(!*popup.open)
return 0;
popup_w = popup.popup_width > 0 ? popup.popup_width : flint_px(44);
popup_h = popup.popup_height > 0 ? popup.popup_height : flint_px(200);
popup_x = popup.x;
popup_y = popup.y + popup.icon_size + popup.icon_padding * 2;
mouse = ui_mouse_world();
if(IsMouseButtonPressed(MOUSE_BUTTON_LEFT) &&
(mouse.x < popup_x || mouse.x > popup_x + popup_w ||
mouse.y < popup_y || mouse.y > popup_y + popup_h)) {
*popup.open = 0;
return 0;
}
DrawRectangle(popup_x, popup_y, popup_w, popup_h, c_surface);
ui_draw_bevel(popup_x, popup_y, popup_w, popup_h,
flint_lighten(c_surface, 40), flint_darken(c_surface, 40));
return ui_draw_slider_vertical(popup.id, popup_x + popup_w / 2,
popup_y + flint_px(10),
popup_h - flint_px(20),
popup.min, popup.max, popup.value);
}
FlintUIIconRowResult
ui_draw_bottom_icon_row(FlintUIBottomIconRow row)
{
FlintUIIconRowResult result = {-1, 0, 0};
int count = row.count;
int icon_size = row.icon_size > 0 ? row.icon_size : flint_px(24);
int icon_padding = row.icon_padding > 0 ? row.icon_padding : flint_px(10);
int gap = row.gap > 0 ? row.gap : flint_px(12);
int side_margin = row.side_margin > 0 ? row.side_margin : flint_px(24);
int bottom_margin = row.bottom_margin > 0 ? row.bottom_margin : flint_px(6);
int min_icon_size = row.min_icon_size > 0 ? row.min_icon_size : flint_px(16);
int min_icon_padding = row.min_icon_padding > 0 ? row.min_icon_padding : flint_px(6);
int min_gap = row.min_gap > 0 ? row.min_gap : flint_px(8);
int available_w;
int max_btn_w;
int button_w;
int row_w;
int start_x;
if(row.items == NULL || count <= 0)
return result;
available_w = row.view_width - side_margin * 2;
if(available_w < flint_px(120))
available_w = flint_px(120);
max_btn_w = row.max_button_width > 0 ? row.max_button_width : available_w;
if(count > 1) {
int fit_btn_w = (available_w - gap * (count - 1)) / count;
if(max_btn_w <= 0 || max_btn_w > fit_btn_w)
max_btn_w = fit_btn_w;
}
button_w = icon_size + icon_padding * 2;
if(button_w > max_btn_w) {
button_w = max_btn_w;
icon_padding = button_w / 4;
icon_size = button_w - icon_padding * 2;
}
if(icon_padding < min_icon_padding)
icon_padding = min_icon_padding;
if(icon_size < min_icon_size)
icon_size = min_icon_size;
button_w = icon_size + icon_padding * 2;
gap = button_w / 4;
if(gap < min_gap)
gap = min_gap;
row_w = button_w * count + gap * (count - 1);
start_x = row.center_x - row_w / 2;
result.y = row.view_height - bottom_margin - button_w;
result.button_width = button_w;
for(int i = 0; i < count; i++) {
int hover = 0;
int x = start_x + i * (button_w + gap);
if(row.items[i].disabled)
continue;
if(ui_draw_icon_btn_padded(x, result.y, icon_size, icon_padding,
row.items[i].icon, &hover))
result.clicked_index = i;
}
return result;
}
+321
View File
@@ -0,0 +1,321 @@
#include "ui.h"
static int
ui_modal_button(int x, int y, int w, int h, const char *label, int font,
Vector2 mouse_world)
{
Rectangle bounds = {(float)x, (float)y, (float)w, (float)h};
int active = CheckCollisionPointRec(mouse_world, bounds);
int hovered = active && ui_hover_effects_enabled();
Color fill = hovered ? c_button_hover : c_button;
int text_w;
DrawRectangle(x, y, w, h, fill);
ui_draw_bevel(x, y, w, h, flint_lighten(fill, 40), flint_darken(fill, 40));
if(active)
ui_mark_clickable();
text_w = flint_text_measure(label, font);
flint_text_draw(label, x + (w - text_w) / 2, flint_ui_text_y(label, y, h, font),
font, c_text);
return active && IsMouseButtonReleased(MOUSE_BUTTON_LEFT);
}
int
ui_draw_modal(const char *title, const char *message,
const char *cancel_btn, const char *confirm_btn)
{
int modal_w = flint_px(280);
int modal_x;
int modal_y;
int title_font = flint_ui_font();
int msg_font = flint_ui_font();
int btn_font = flint_ui_font();
int btn_h = flint_clamp_px(36, 32, 40);
int btn_w = flint_px(100);
int btn_gap = flint_px(12);
int title_h = flint_px(32);
int msg_x;
int msg_y;
int msg_w = modal_w - flint_px(32);
int msg_gap = flint_px(18);
int modal_h;
int btn_y;
Vector2 mouse_world = ui_mouse_world();
FlintTextLayout msg_layout = flint_text_layout_parse(message, g_ui_gear_icon,
UI_ICON_TYPE_GEAR, msg_font);
flint_text_layout_reflow(&msg_layout, msg_w, msg_font, flint_px(4));
modal_h = title_h + flint_text_layout_get_height(&msg_layout) + msg_gap + btn_h + flint_px(20);
if(modal_h < flint_px(160))
modal_h = flint_px(160);
if(modal_h > ui_view_height - flint_px(24))
modal_h = ui_view_height - flint_px(24);
modal_x = (ui_view_width - modal_w) / 2;
modal_y = (ui_view_height - modal_h) / 2;
msg_x = modal_x + flint_px(16);
msg_y = modal_y + title_h;
btn_y = modal_y + modal_h - btn_h - flint_px(16);
/* Dim background */
DrawRectangle(0, 0, ui_view_width, ui_view_height, (Color){0, 0, 0, 180});
/* Modal background */
DrawRectangle(modal_x, modal_y, modal_w, modal_h, c_surface);
ui_draw_bevel(modal_x, modal_y, modal_w, modal_h, flint_lighten(c_surface, 40), flint_darken(c_surface, 40));
/* Title */
int title_w = flint_text_measure(title, title_font);
flint_text_draw(title, modal_x + (modal_w - title_w) / 2, modal_y + flint_px(12), title_font, c_text);
/* Draw the layout */
flint_text_layout_draw(&msg_layout, msg_x, &msg_y, msg_font, c_text);
flint_text_layout_free(&msg_layout);
/* Buttons */
int cancel_x = modal_x + (modal_w - btn_w * 2 - btn_gap) / 2;
int confirm_x = cancel_x + btn_w + btn_gap;
int result = 0;
if(ui_modal_button(cancel_x, btn_y, btn_w, btn_h, cancel_btn, btn_font, mouse_world))
result = 1;
if(ui_modal_button(confirm_x, btn_y, btn_w, btn_h, confirm_btn, btn_font, mouse_world))
result = 2;
return result;
}
int
ui_draw_modal_3btn(const char *title, const char *message,
const char *left_btn, const char *middle_btn, const char *right_btn)
{
int modal_w = flint_px(300);
int modal_x;
int modal_y;
int title_font = flint_ui_font();
int msg_font = flint_ui_font();
int btn_font = flint_ui_font();
int btn_h = flint_clamp_px(36, 32, 40);
int btn_w = flint_px(90);
int btn_gap = flint_px(8);
int title_h = flint_px(32);
int msg_x;
int msg_y;
int msg_w = modal_w - flint_px(32);
int msg_gap = flint_px(18);
int modal_h;
int btn_y;
Vector2 mouse_world = ui_mouse_world();
FlintTextLayout msg_layout = flint_text_layout_parse(message, g_ui_gear_icon,
UI_ICON_TYPE_GEAR, msg_font);
flint_text_layout_reflow(&msg_layout, msg_w, msg_font, flint_px(4));
modal_h = title_h + flint_text_layout_get_height(&msg_layout) + msg_gap + btn_h + flint_px(20);
if(modal_h < flint_px(160))
modal_h = flint_px(160);
if(modal_h > ui_view_height - flint_px(24))
modal_h = ui_view_height - flint_px(24);
modal_x = (ui_view_width - modal_w) / 2;
modal_y = (ui_view_height - modal_h) / 2;
msg_x = modal_x + flint_px(16);
msg_y = modal_y + title_h;
btn_y = modal_y + modal_h - btn_h - flint_px(16);
/* Dim background */
DrawRectangle(0, 0, ui_view_width, ui_view_height, (Color){0, 0, 0, 180});
/* Modal background */
DrawRectangle(modal_x, modal_y, modal_w, modal_h, c_surface);
ui_draw_bevel(modal_x, modal_y, modal_w, modal_h, flint_lighten(c_surface, 40), flint_darken(c_surface, 40));
/* Title */
int title_w = flint_text_measure(title, title_font);
flint_text_draw(title, modal_x + (modal_w - title_w) / 2, modal_y + flint_px(12), title_font, c_text);
/* Draw the layout */
flint_text_layout_draw(&msg_layout, msg_x, &msg_y, msg_font, c_text);
flint_text_layout_free(&msg_layout);
/* Calculate button positions */
int total_btn_w = btn_w * 3 + btn_gap * 2;
int left_x = modal_x + (modal_w - total_btn_w) / 2;
int middle_x = left_x + btn_w + btn_gap;
int right_x = middle_x + btn_w + btn_gap;
int result = 0;
if(ui_modal_button(left_x, btn_y, btn_w, btn_h, left_btn, btn_font, mouse_world))
result = 1;
if(ui_modal_button(middle_x, btn_y, btn_w, btn_h, middle_btn, btn_font, mouse_world))
result = 2;
if(ui_modal_button(right_x, btn_y, btn_w, btn_h, right_btn, btn_font, mouse_world))
result = 3;
return result;
}
int
ui_paragraph_modal_height(FlintUIParagraphModalMeasure measure)
{
int width = measure.width > 0 ? measure.width : flint_px(320);
int header_h = measure.header_h > 0 ? measure.header_h : flint_px(58);
int button_h = measure.button_h > 0 ? measure.button_h : flint_px(36);
int line_gap = measure.line_gap > 0 ? measure.line_gap : flint_px(4);
int font = measure.font > 0 ? measure.font : flint_ui_font();
int extra_lines = measure.extra_lines > 0 ? measure.extra_lines : 0;
int min_h = measure.min_height > 0 ? measure.min_height : 0;
int content_w;
FlintUIParagraph paragraph;
int height;
if(width > ui_view_width - flint_px(24))
width = ui_view_width - flint_px(24);
if(width < flint_px(160))
width = flint_px(160);
content_w = width - flint_px(36);
if(content_w < flint_px(120))
content_w = flint_px(120);
paragraph = (FlintUIParagraph){
.text = measure.message,
.width = content_w,
.font = font,
.line_gap = line_gap,
.color = c_text
};
height = header_h +
flint_ui_paragraph_height(paragraph) +
extra_lines * (font + line_gap) +
button_h +
flint_px(18);
if(height < min_h)
height = min_h;
return height;
}
/* ================================================================
* SCREEN HEADER (TITLE BAR)
* ================================================================ */
int
ui_screen_header_height(void)
{
return flint_clamp_px(60, 48, 60);
}
FlintUIHeader
ui_draw_title_header(int height, const char *title,
Texture2D left_icon,
Texture2D right_icon)
{
FlintUIHeader header = {height, 0, 0};
int icon_size = flint_px(20);
int icon_padding = flint_px(8);
int icon_w = icon_size + icon_padding * 2;
int title_font = flint_ui_title_font(title, ui_view_width - icon_w * 2 - flint_px(48));
int title_w = flint_text_measure(title, title_font);
int hover = 0;
DrawRectangle(0, 0, ui_view_width, height, c_bg);
DrawLine(0, height - 1, ui_view_width, height - 1, flint_darken(c_button, 18));
if(left_icon.id != 0) {
header.left_clicked = ui_draw_icon_btn_padded(flint_px(12), flint_px(12),
icon_size, icon_padding,
left_icon, &hover);
}
if(right_icon.id != 0) {
header.right_clicked = ui_draw_icon_btn_padded(ui_view_width - icon_w - flint_px(12),
flint_px(12), icon_size, icon_padding,
right_icon, &hover);
}
flint_text_draw(title, (ui_view_width - title_w) / 2,
flint_ui_text_y(title, 0, height, title_font),
title_font, c_text);
return header;
}
FlintUIPanelFrame
ui_draw_modal_frame(int width, int height, const char *title,
Texture2D left_icon,
Texture2D right_icon)
{
FlintUIPanelFrame frame = {0};
int title_font;
int icon_size = flint_px(20);
int icon_padding = flint_px(8);
int icon_w = icon_size + icon_padding * 2;
int title_w;
int hover = 0;
if(width > ui_view_width - flint_px(24))
width = ui_view_width - flint_px(24);
if(height > ui_view_height - flint_px(24))
height = ui_view_height - flint_px(24);
frame.w = width;
frame.h = height;
frame.x = (ui_view_width - width) / 2;
frame.y = (ui_view_height - height) / 2;
frame.content_x = frame.x + flint_px(18);
frame.content_y = frame.y + flint_px(58);
frame.content_w = frame.w - flint_px(36);
frame.content_h = frame.h - flint_px(74);
title_font = flint_ui_title_font(title, frame.w - icon_w * 2 - flint_px(24));
title_w = flint_text_measure(title, title_font);
DrawRectangle(0, 0, ui_view_width, ui_view_height, (Color){0, 0, 0, 180});
DrawRectangle(frame.x, frame.y, frame.w, frame.h, c_surface);
ui_draw_bevel(frame.x, frame.y, frame.w, frame.h,
flint_lighten(c_surface, 40), flint_darken(c_surface, 40));
flint_text_draw(title, frame.x + (frame.w - title_w) / 2,
frame.y + flint_px(14), title_font, c_text);
if(left_icon.id != 0) {
frame.left_clicked = ui_draw_icon_btn_padded(frame.x + flint_px(6),
frame.y + flint_px(6),
icon_size, icon_padding,
left_icon, &hover);
}
if(right_icon.id != 0) {
frame.right_clicked = ui_draw_icon_btn_padded(frame.x + frame.w - icon_w - flint_px(6),
frame.y + flint_px(6),
icon_size, icon_padding,
right_icon, &hover);
}
return frame;
}
int
ui_draw_screen_header(const char *title, int show_close)
{
(void)c_bg; /* unused */
int title_h = ui_screen_header_height();
int title_font;
int close_hover = 0;
int close_clicked = 0;
/* Draw header background */
DrawRectangle(0, 0, ui_view_width, title_h, flint_darken(c_bg, 14));
DrawLine(0, title_h - 1, ui_view_width, title_h - 1, flint_darken(c_bg, 42));
/* Draw close button if requested */
int close_x = ui_view_width - flint_px(40) - ui_icon_btn_padding(UI_ICON_SIZE_TINY);
int title_x = flint_px(16);
int title_max_w = show_close ? close_x - title_x - flint_px(12) : ui_view_width - title_x * 2;
title_font = flint_ui_title_font(title, title_max_w);
flint_text_draw(title, title_x, flint_ui_text_y(title, 0, title_h, title_font), title_font, c_text);
if(show_close) {
close_clicked = ui_draw_icon_btn(close_x, flint_px(8), UI_ICON_SIZE_TINY,
g_ui_x_icon, &close_hover);
}
return close_clicked;
}
/* ================================================================
* SCROLLBAR
* ================================================================ */
+134
View File
@@ -0,0 +1,134 @@
#include "ui.h"
void
ui_draw_info_rows(FlintUIInfoRows rows)
{
Color background = rows.background.a != 0
? rows.background
: flint_darken(c_bg, 6);
Color separator = rows.separator.a != 0
? rows.separator
: flint_darken(c_bg, 30);
Color default_text = rows.default_text.a != 0 ? rows.default_text : c_text;
int row_h = rows.row_height > 0 ? rows.row_height : flint_px(32);
int padding_x = rows.padding_x > 0 ? rows.padding_x : flint_px(10);
if(rows.rows == NULL || rows.row_count <= 0 || rows.width <= 0 || row_h <= 0)
return;
DrawRectangle(rows.x, rows.y, rows.width, row_h * rows.row_count,
background);
for(int i = 0; i < rows.row_count; i++) {
const FlintUIInfoRow *row = &rows.rows[i];
int y = rows.y + i * row_h;
int font = row->font > 0 ? row->font : flint_ui_font();
Color text = row->color.a != 0 ? row->color : default_text;
if(i > 0)
DrawLine(rows.x, y, rows.x + rows.width, y, separator);
flint_ui_draw_text_left_in_rect(row->text ? row->text : "",
(Rectangle){(float)(rows.x + padding_x),
(float)y,
(float)(rows.width - padding_x * 2),
(float)row_h},
font, text);
}
}
int
ui_label_text_field_height(FlintUILabelTextField row)
{
int label_h = row.label_h > 0 ? row.label_h : flint_px(22);
int field_h = row.field_h > 0 ? row.field_h : flint_px(40);
int gap = row.gap > 0 ? row.gap : 0;
int bottom_gap = row.bottom_gap > 0 ? row.bottom_gap : flint_px(24);
return label_h + gap + field_h + bottom_gap;
}
int
ui_draw_label_text_field(FlintUILabelTextField row, int x, int y, int w)
{
int label_font = row.label_font > 0 ? row.label_font : flint_ui_font_small();
int label_h = row.label_h > 0 ? row.label_h : flint_px(22);
int field_h = row.field_h > 0 ? row.field_h : flint_px(40);
int gap = row.gap > 0 ? row.gap : 0;
Color label_color = row.label_color.a != 0 ? row.label_color : flint_darken(c_text, 34);
FlintUITextField field = row.field;
flint_text_draw(row.label != NULL ? row.label : "", x, y, label_font, label_color);
field.bounds = (Rectangle){(float)x, (float)(y + label_h + gap), (float)w, (float)field_h};
return flint_ui_text_field(field);
}
int
ui_section_label_height(FlintUISectionLabel label)
{
return label.height > 0 ? label.height : flint_px(24);
}
int
ui_draw_section_label(FlintUISectionLabel label, int x, int y)
{
int font = label.font > 0 ? label.font : flint_ui_font_small();
int icon_d = label.icon_diameter > 0 ? label.icon_diameter : flint_px(18);
Color color = label.color.a != 0 ? label.color : flint_darken(c_text, 34);
const char *text = label.label != NULL ? label.label : "";
int label_w;
flint_text_draw(text, x, y, font, color);
if(!label.info_button)
return 0;
label_w = flint_text_measure(text, font);
return ui_draw_info_button(x + label_w + flint_px(16),
y + font / 2 + flint_px(1), icon_d);
}
int
ui_checkbox_row_height(FlintUICheckboxRow row)
{
return row.height > 0 ? row.height : flint_px(42);
}
int
ui_draw_checkbox_row(FlintUICheckboxRow row, int x, int y)
{
if(row.disabled)
return ui_draw_checkbox_toggle_disabled(x, y, row.label, row.value, 1);
return ui_draw_checkbox_toggle(x, y, row.label, row.value);
}
int
ui_button_row_height(FlintUIButtonRow row)
{
return row.height > 0 ? row.height : flint_px(40);
}
int
ui_draw_button_row(FlintUIButtonRow row)
{
int clicked = -1;
int gap = row.gap > 0 ? row.gap : flint_px(10);
int button_w;
if(row.items == NULL || row.count <= 0 || row.width <= 0 || row.height <= 0)
return -1;
button_w = (row.width - gap * (row.count - 1)) / row.count;
if(button_w <= 0)
return -1;
for(int i = 0; i < row.count; i++) {
int hover = 0;
int x = row.x + i * (button_w + gap);
if(ui_draw_generic_button(x, row.y, button_w, row.height,
row.items[i].label,
row.items[i].style,
row.items[i].disabled,
&hover))
clicked = i;
}
return clicked;
}
+337
View File
@@ -0,0 +1,337 @@
#include "ui.h"
int
ui_scrollbar_reserved_width(int max_scroll)
{
return max_scroll > 0 ? flint_px(16) : 0;
}
int
ui_scrollbar_content_width(int content_width, int max_scroll)
{
int reserved = ui_scrollbar_reserved_width(max_scroll);
if(reserved <= 0)
return content_width;
if(content_width <= reserved)
return 0;
return content_width - reserved;
}
int
ui_scrollbar_safe_content_width(int content_x, int content_width,
int scrollbar_x, int max_scroll)
{
int gap = flint_px(20);
int safe_width = content_width;
if(max_scroll <= 0 || scrollbar_x <= 0)
return content_width;
safe_width = scrollbar_x - content_x - gap;
if(safe_width > content_width)
return content_width;
if(safe_width < 0)
return 0;
return safe_width;
}
FlintUIScrollView
ui_scroll_container_measure(FlintUIScrollArea area)
{
FlintUIScrollView view;
int x = (int)area.bounds.x;
int y = (int)area.bounds.y;
int w = (int)area.bounds.width;
int h = (int)area.bounds.height;
int scrollbar_w = flint_px(8);
int scrollbar_x = area.scrollbar_x > 0
? area.scrollbar_x
: x + w - scrollbar_w;
int content_x = area.content_x > 0 ? area.content_x : x;
int content_w = area.content_width > 0 ? area.content_width : w;
memset(&view, 0, sizeof(view));
view.content_x = content_x;
view.viewport_h = h;
view.content_h = area.content_height > 0 ? area.content_height : 0;
view.max_scroll = view.content_h - h;
if(view.max_scroll < 0)
view.max_scroll = 0;
if(area.scroll_offset != NULL) {
int scroll_offset = ui_clampi(*area.scroll_offset, 0, view.max_scroll);
view.content_y = y - scroll_offset;
} else {
view.content_y = y;
}
view.content_w = ui_scrollbar_safe_content_width(content_x, content_w,
scrollbar_x, view.max_scroll);
return view;
}
FlintUIScrollPage
ui_scroll_page_begin(FlintUIScrollPageSpec spec)
{
FlintUIScrollPage page;
FlintUIScrollArea area;
FlintUIScrollView measured;
int max_content_w = spec.max_content_width;
int min_content_w = spec.min_content_width;
int side_padding = spec.side_padding > 0 ? spec.side_padding : flint_page_side_padding();
int content_x = 0;
int content_w = 0;
int draw_w;
int passes = spec.measure_passes > 0 ? spec.measure_passes : 3;
memset(&page, 0, sizeof(page));
if(max_content_w <= 0)
max_content_w = ui_view_width;
if(max_content_w > ui_view_width - side_padding * 2)
max_content_w = ui_view_width - side_padding * 2;
if(min_content_w > 0 && max_content_w < min_content_w)
max_content_w = min_content_w;
if(max_content_w < 0)
max_content_w = 0;
flint_centered_column(max_content_w, side_padding, &content_x, &content_w);
draw_w = content_w;
for(int i = 0; i < passes; i++) {
int content_h;
if(spec.content_height != NULL)
content_h = spec.content_height(draw_w, spec.user_data);
else
content_h = 0;
area = (FlintUIScrollArea){
.bounds = {0.0f, (float)spec.y, (float)ui_view_width, (float)spec.height},
.content_height = content_h,
.content_x = content_x,
.content_width = content_w,
.scroll_offset = spec.scroll_offset,
.wheel_step = spec.wheel_step > 0 ? spec.wheel_step : flint_px(42),
.scrollbar_x = spec.scrollbar_x > 0 ? spec.scrollbar_x : ui_view_width - flint_px(8)
};
measured = ui_scroll_container_measure(area);
if(measured.content_w == draw_w)
break;
draw_w = measured.content_w;
}
if(spec.content_height != NULL)
area.content_height = spec.content_height(draw_w, spec.user_data);
page.area = area;
page.view = ui_scroll_container_begin(area);
page.content_x = page.view.content_x;
page.content_y = page.view.content_y;
page.content_w = page.view.content_w;
page.content_h = area.content_height;
return page;
}
void
ui_scroll_page_end(FlintUIScrollPage page)
{
ui_scroll_container_end(page.area, page.view);
}
FlintUIScrollView
ui_scroll_container_begin(FlintUIScrollArea area)
{
static int content_drag_active = 0;
static int content_dragging = 0;
static int content_drag_start_y = 0;
static int content_drag_start_scroll = 0;
FlintUIScrollView view = ui_scroll_container_measure(area);
Vector2 mouse_world = ui_mouse_world();
int y = (int)area.bounds.y;
int wheel_step = area.wheel_step > 0 ? area.wheel_step : flint_px(42);
int inside = CheckCollisionPointRec(mouse_world, area.bounds);
int captured = ui_input_captures_click(mouse_world);
int drag_threshold = flint_px(5);
int scrollbar_w = flint_px(8);
int scrollbar_x = area.scrollbar_x > 0
? area.scrollbar_x
: (int)(area.bounds.x + area.bounds.width) - scrollbar_w;
Rectangle scrollbar_bounds = {
(float)scrollbar_x,
area.bounds.y,
(float)scrollbar_w,
area.bounds.height
};
int on_scrollbar = view.max_scroll > 0 &&
CheckCollisionPointRec(mouse_world, scrollbar_bounds);
if(area.scroll_offset != NULL) {
*area.scroll_offset = ui_clampi(*area.scroll_offset, 0, view.max_scroll);
if(view.max_scroll > 0 && inside && !captured) {
float wheel = GetMouseWheelMove();
if(wheel != 0.0f) {
*area.scroll_offset -= (int)(wheel * (float)wheel_step);
*area.scroll_offset = ui_clampi(*area.scroll_offset, 0, view.max_scroll);
}
}
if(g_ui_slider_active_id != 0 &&
g_ui_pointer_owner == UI_POINTER_OWNER_NONE &&
g_ui_pointer_dragging &&
ui_pointer_drag_is_horizontal())
g_ui_pointer_owner = UI_POINTER_OWNER_HORIZONTAL_SLIDER;
if(g_ui_pointer_owner == UI_POINTER_OWNER_HORIZONTAL_SLIDER ||
g_ui_pointer_owner == UI_POINTER_OWNER_VERTICAL_SLIDER) {
content_drag_active = 0;
content_dragging = 0;
}
if(view.max_scroll > 0 &&
g_ui_pointer_owner == UI_POINTER_OWNER_NONE &&
IsMouseButtonPressed(MOUSE_BUTTON_LEFT) && inside && !captured &&
!on_scrollbar) {
content_drag_active = 1;
content_dragging = 0;
content_drag_start_y = (int)mouse_world.y;
content_drag_start_scroll = *area.scroll_offset;
}
if(content_drag_active && IsMouseButtonDown(MOUSE_BUTTON_LEFT) &&
g_ui_pointer_owner != UI_POINTER_OWNER_HORIZONTAL_SLIDER &&
g_ui_pointer_owner != UI_POINTER_OWNER_VERTICAL_SLIDER) {
int dy = (int)mouse_world.y - content_drag_start_y;
if(content_dragging || dy > drag_threshold || dy < -drag_threshold) {
g_ui_pointer_owner = UI_POINTER_OWNER_SCROLL;
content_dragging = 1;
*area.scroll_offset = content_drag_start_scroll - dy;
*area.scroll_offset = ui_clampi(*area.scroll_offset, 0, view.max_scroll);
ui_set_input_blocked(1);
}
} else if(content_drag_active) {
if(content_dragging)
ui_set_input_blocked(1);
content_drag_active = 0;
content_dragging = 0;
}
view.content_y = y - *area.scroll_offset;
} else {
view.content_y = y;
}
{
Rectangle screen_bounds = {
g_ui_camera.offset.x + area.bounds.x * g_ui_camera.zoom,
g_ui_camera.offset.y + area.bounds.y * g_ui_camera.zoom,
area.bounds.width * g_ui_camera.zoom,
area.bounds.height * g_ui_camera.zoom
};
Rectangle clipped_screen_bounds = flint_clip_effective(screen_bounds);
Rectangle clipped_world_bounds = {
(clipped_screen_bounds.x - g_ui_camera.offset.x) / g_ui_camera.zoom,
(clipped_screen_bounds.y - g_ui_camera.offset.y) / g_ui_camera.zoom,
clipped_screen_bounds.width / g_ui_camera.zoom,
clipped_screen_bounds.height / g_ui_camera.zoom
};
ui_push_input_clip(clipped_world_bounds);
flint_clip_begin((int)screen_bounds.x, (int)screen_bounds.y,
(int)screen_bounds.width, (int)screen_bounds.height);
}
return view;
}
void
ui_scroll_container_end(FlintUIScrollArea area, FlintUIScrollView view)
{
int scrollbar_w = flint_px(8);
int scrollbar_x;
flint_clip_end();
ui_pop_input_clip();
if(area.scroll_offset == NULL || view.max_scroll <= 0)
return;
scrollbar_x = area.scrollbar_x > 0
? area.scrollbar_x
: (int)(area.bounds.x + area.bounds.width) - scrollbar_w;
ui_draw_scrollbar(scrollbar_x,
(int)area.bounds.y,
(int)area.bounds.height,
view.content_h,
area.scroll_offset,
view.max_scroll);
}
/* ================================================================
* SCROLLBAR
* ================================================================ */
int
ui_draw_scrollbar(int x, int y, int viewport_h, int content_h, int *scroll_offset, int max_scroll)
{
/* Don't show scrollbar if no scrolling needed */
if(max_scroll <= 0)
return 0;
static int scrollbar_drag_active = 0;
static int scrollbar_drag_start_y = 0;
static int scrollbar_drag_start_scroll = 0;
int scrollbar_width = flint_px(8);
int scrollbar_min_thumb = flint_px(24);
int track_padding = 0;
/* Calculate thumb size and position */
float content_ratio = (float)viewport_h / (float)content_h;
int thumb_height = (int)(viewport_h * content_ratio);
if(thumb_height < scrollbar_min_thumb)
thumb_height = scrollbar_min_thumb;
if(thumb_height > viewport_h)
thumb_height = viewport_h;
float scroll_ratio = max_scroll > 0 ? (float)*scroll_offset / (float)max_scroll : 0.0f;
int thumb_y = y + (int)(scroll_ratio * (viewport_h - thumb_height));
Vector2 mouse_pos = ui_mouse_world();
int my = (int)mouse_pos.y;
Rectangle thumb_bounds = {x + track_padding, thumb_y, scrollbar_width - track_padding * 2, thumb_height};
int input_captured = ui_input_captures_click_internal(mouse_pos, 0);
int thumb_active = CheckCollisionPointRec(mouse_pos, thumb_bounds) && !input_captured;
int thumb_hover = thumb_active && ui_hover_effects_enabled();
/* Handle drag state */
if(IsMouseButtonDown(MOUSE_BUTTON_LEFT) &&
(!input_captured || scrollbar_drag_active)) {
if(!scrollbar_drag_active) {
/* Start drag if clicking on thumb */
if(thumb_active && g_ui_pointer_owner == UI_POINTER_OWNER_NONE) {
scrollbar_drag_active = 1;
g_ui_pointer_owner = UI_POINTER_OWNER_SCROLL;
scrollbar_drag_start_y = my;
scrollbar_drag_start_scroll = *scroll_offset;
}
} else {
/* Continue drag */
int dy = my - scrollbar_drag_start_y;
float scroll_per_pixel = (float)max_scroll / (float)(viewport_h - thumb_height);
int new_scroll = scrollbar_drag_start_scroll + (int)(dy * scroll_per_pixel);
*scroll_offset = new_scroll;
if(*scroll_offset < 0) *scroll_offset = 0;
if(*scroll_offset > max_scroll) *scroll_offset = max_scroll;
}
} else {
if(scrollbar_drag_active && g_ui_pointer_owner == UI_POINTER_OWNER_SCROLL)
g_ui_pointer_owner = UI_POINTER_OWNER_NONE;
scrollbar_drag_active = 0;
}
DrawRectangle(x, y, scrollbar_width, viewport_h, flint_darken(c_bg, 20));
Color thumb_color = thumb_hover || scrollbar_drag_active ? c_button_hover : c_button;
DrawRectangleRec(thumb_bounds, thumb_color);
return 1;
}
/* ================================================================
* END OF UI FUNCTIONS
* ================================================================ */
+211
View File
@@ -0,0 +1,211 @@
#include "ui.h"
#include "flint_layout.h"
#include "flint_locale.h"
static const FlintThemeId theme_picker_order[FLINT_THEME_COUNT] = {
FLINT_THEME_SKY,
FLINT_THEME_OCEAN,
FLINT_THEME_COBALT,
FLINT_THEME_FOREST,
FLINT_THEME_SAGE,
FLINT_THEME_MINT,
FLINT_THEME_SUNSET,
FLINT_THEME_INK,
FLINT_THEME_DAWN,
FLINT_THEME_CHERRY,
FLINT_THEME_LAVENDER,
FLINT_THEME_MONO
};
typedef struct {
int circle_size;
int label_gap;
int col_gap;
int cell_w;
int per_row;
int row_width;
int row_step;
int row_count;
int height;
} UIThemeGridLayout;
static const char *
ui_theme_label(FlintThemeId theme)
{
const char *key = NULL;
const char *label;
switch(flint_theme_normalize(theme)) {
case FLINT_THEME_SKY: key = "theme_sky"; break;
case FLINT_THEME_OCEAN: key = "theme_ocean"; break;
case FLINT_THEME_FOREST: key = "theme_forest"; break;
case FLINT_THEME_SUNSET: key = "theme_sunset"; break;
case FLINT_THEME_LAVENDER: key = "theme_lavender"; break;
case FLINT_THEME_CHERRY: key = "theme_cherry"; break;
case FLINT_THEME_DAWN: key = "theme_dawn"; break;
case FLINT_THEME_SAGE: key = "theme_sage"; break;
case FLINT_THEME_INK: key = "theme_sepia"; break;
case FLINT_THEME_MONO: key = "theme_mono"; break;
case FLINT_THEME_MINT: key = "theme_mint"; break;
case FLINT_THEME_COBALT: key = "theme_cobalt"; break;
default: break;
}
if(key == NULL)
return flint_theme_label(theme);
label = locale_get(key);
if(label == NULL || label[0] == '\0' || strcmp(label, key) == 0)
return flint_theme_label(theme);
return label;
}
static UIThemeGridLayout
ui_theme_grid_layout(int w)
{
UIThemeGridLayout layout = {0};
int small_font = FLINT_TEXT_12;
int row_gap = flint_px(14);
layout.circle_size = flint_px(24);
layout.label_gap = flint_px(6);
layout.col_gap = flint_px(10);
layout.cell_w = layout.circle_size;
for(int i = 0; i < FLINT_THEME_COUNT; i++) {
int name_w = flint_text_measure(ui_theme_label((FlintThemeId)i), small_font) + flint_px(8);
if(name_w > layout.cell_w)
layout.cell_w = name_w;
}
layout.per_row = (w + layout.col_gap) / (layout.cell_w + layout.col_gap);
if(layout.per_row < 1)
layout.per_row = 1;
if(layout.per_row > 3)
layout.per_row = 3;
if(layout.per_row > FLINT_THEME_COUNT)
layout.per_row = FLINT_THEME_COUNT;
layout.row_width = layout.per_row * layout.cell_w + (layout.per_row - 1) * layout.col_gap;
layout.row_step = layout.circle_size + layout.label_gap + small_font + row_gap;
layout.row_count = (FLINT_THEME_COUNT + layout.per_row - 1) / layout.per_row;
layout.height = layout.circle_size + layout.label_gap + small_font;
if(layout.row_count > 1)
layout.height += (layout.row_count - 1) * layout.row_step;
return layout;
}
static int
ui_draw_theme_grid(int x, int circle_y, int w, int dark, int *theme_id)
{
int changed = 0;
int small_font = FLINT_TEXT_12;
int selected = theme_id != NULL ? *theme_id : FLINT_THEME_SKY;
UIThemeGridLayout layout = ui_theme_grid_layout(w);
int start_x = x + (w - layout.row_width) / 2;
Vector2 mouse_world = ui_mouse_world();
if(selected < 0 || selected >= FLINT_THEME_COUNT)
selected = FLINT_THEME_SKY;
for(int i = 0; i < FLINT_THEME_COUNT; i++) {
FlintThemeId theme = theme_picker_order[i];
int row = i / layout.per_row;
int col = i % layout.per_row;
int cell_x = start_x + col * (layout.cell_w + layout.col_gap);
int cx = cell_x + layout.cell_w / 2;
int cy = circle_y + row * layout.row_step;
Color theme_color = c_circle;
if(!flint_theme_catalog_color(theme, dark != 0, "circle", &theme_color)) {
const char *scope = flint_theme_scope_for(theme, dark != 0);
theme_color = flint_theme_get(scope, "circle");
}
DrawCircle(cx, cy, layout.circle_size / 2, theme_color);
DrawCircleLines(cx, cy, layout.circle_size / 2 + (selected == theme ? flint_px(2) : flint_px(1)),
selected == theme ? c_text : flint_darken(c_bg, 30));
Rectangle bounds = {
(float)(cx - layout.circle_size / 2 - flint_px(4)),
(float)(cy - layout.circle_size / 2 - flint_px(4)),
(float)(layout.circle_size + flint_px(8)),
(float)(layout.circle_size + flint_px(8))
};
if(CheckCollisionPointRec(mouse_world, bounds) && !ui_input_captures_click(mouse_world)) {
ui_mark_clickable();
if(IsMouseButtonReleased(MOUSE_BUTTON_LEFT)) {
selected = theme;
if(theme_id != NULL)
*theme_id = theme;
changed = 1;
}
}
const char *name = ui_theme_label(theme);
int name_w = flint_text_measure(name, small_font);
flint_text_draw(name, cx - name_w / 2,
cy + layout.circle_size / 2 + layout.label_gap,
small_font, c_text);
}
return changed;
}
int
ui_draw_theme_switcher(int x, int y, int w, const char *label,
const char *light_label, const char *dark_label,
int *theme_id, int *dark_mode)
{
int changed = 0;
int font = flint_ui_font();
int dark = dark_mode != NULL ? *dark_mode : 0;
flint_text_draw(label ? label : "Theme", x, y, font, c_text);
int light_w = flint_text_measure(light_label ? light_label : "Light", font);
int dark_w = flint_text_measure(dark_label ? dark_label : "Dark", font);
int max_label_w = light_w > dark_w ? light_w : dark_w;
int toggle_w = max_label_w * 2 + flint_px(32);
int min_toggle_w = flint_px(100);
if(toggle_w < min_toggle_w)
toggle_w = min_toggle_w;
if(toggle_w > w)
toggle_w = w;
int toggle_h = flint_px(28);
int toggle_x = x + w - toggle_w - flint_px(8);
int toggle_y = y - flint_px(2);
if(ui_draw_toggle_switch(toggle_x, toggle_y, toggle_w, toggle_h, &dark,
light_label ? light_label : "Light",
dark_label ? dark_label : "Dark")) {
if(dark_mode != NULL)
*dark_mode = dark;
changed = 1;
}
if(ui_draw_theme_grid(x, y + flint_px(64), w, dark, theme_id))
changed = 1;
return changed;
}
int
ui_draw_theme_picker(int x, int y, int w, const char *label, int dark_mode,
int *theme_id)
{
int changed = 0;
int font = flint_ui_font();
flint_text_draw(label ? label : "Theme", x, y, font, c_text);
if(ui_draw_theme_grid(x, y + flint_px(54), w, dark_mode != 0, theme_id))
changed = 1;
return changed;
}
int
ui_theme_picker_height(int w)
{
return flint_px(54) + ui_theme_grid_layout(w).height;
}
+115
View File
@@ -0,0 +1,115 @@
#include "ui.h"
FlintUIToolbarResult
ui_draw_toolbar(FlintUIToolbar toolbar)
{
FlintUIToolbarResult result = {-1, -1};
int side_padding = toolbar.side_padding > 0 ? toolbar.side_padding : flint_px(12);
int action_icon_size = toolbar.action_icon_size > 0
? toolbar.action_icon_size
: flint_px(20);
int action_icon_padding = toolbar.action_icon_padding > 0
? toolbar.action_icon_padding
: flint_px(8);
int action_gap = toolbar.action_gap > 0 ? toolbar.action_gap : flint_px(6);
int action_w = action_icon_size + action_icon_padding * 2;
int action_y = toolbar.y + (toolbar.height - action_w) / 2;
int controls_x = toolbar.x + toolbar.width - side_padding;
if(toolbar.draw_menu) {
if(toolbar.options != NULL && toolbar.selected_index != NULL &&
ui_draw_dropdown_menu(toolbar.id))
result.selected_menu_item = toolbar.selected_index != NULL
? *toolbar.selected_index
: -1;
return result;
}
DrawRectangle(toolbar.x, toolbar.y, toolbar.width, toolbar.height,
flint_darken(c_bg, 14));
DrawLine(toolbar.x, toolbar.y + toolbar.height - 1,
toolbar.x + toolbar.width, toolbar.y + toolbar.height - 1,
flint_darken(c_bg, 42));
if(toolbar.actions != NULL && toolbar.action_count > 0) {
for(int i = toolbar.action_count - 1; i >= 0; i--) {
int hover = 0;
int action_x;
controls_x -= action_w;
action_x = controls_x;
if(!toolbar.actions[i].disabled &&
ui_draw_icon_btn_padded(action_x, action_y, action_icon_size,
action_icon_padding,
toolbar.actions[i].icon, &hover))
result.clicked_action = i;
controls_x -= action_gap;
}
}
if(toolbar.options != NULL && toolbar.option_count > 0 &&
toolbar.selected_index != NULL) {
int dropdown_h = toolbar.dropdown_height > 0
? toolbar.dropdown_height
: flint_px(36);
int dropdown_x = toolbar.x + side_padding;
int dropdown_y = toolbar.y + (toolbar.height - dropdown_h) / 2;
int dropdown_w = controls_x - dropdown_x;
int dropdown_available_w;
if(toolbar.action_count > 0)
dropdown_w -= side_padding - action_gap;
dropdown_available_w = dropdown_w;
if(toolbar.dropdown_min_width > 0 && dropdown_w < toolbar.dropdown_min_width)
dropdown_w = toolbar.dropdown_min_width;
if(toolbar.dropdown_max_width > 0 && dropdown_w > toolbar.dropdown_max_width)
dropdown_w = toolbar.dropdown_max_width;
if(dropdown_available_w > 0 && dropdown_w > dropdown_available_w)
dropdown_w = dropdown_available_w;
if(dropdown_w < 0)
dropdown_w = 0;
ui_draw_dropdown_button(toolbar.id, dropdown_x, dropdown_y,
dropdown_w, dropdown_h,
toolbar.options, toolbar.option_count,
toolbar.selected_index);
}
return result;
}
FlintUIToolbarHeaderResult
ui_draw_toolbar_header(FlintUIToolbarHeader header)
{
FlintUIToolbarHeaderResult result;
FlintUIToolbar toolbar = header.toolbar;
int height = toolbar.height > 0 ? toolbar.height : flint_px(58);
int icon_size = header.leading_icon_size > 0 ? header.leading_icon_size : flint_px(20);
int icon_padding = header.leading_icon_padding > 0 ? header.leading_icon_padding : flint_px(8);
int leading_w = header.leading_width;
int hover = 0;
memset(&result, 0, sizeof(result));
if(leading_w <= 0 && header.leading_icon.id != 0)
leading_w = icon_size + icon_padding * 2 + flint_px(24);
if(!toolbar.draw_menu) {
DrawRectangle(0, 0, ui_view_width, height, flint_darken(c_bg, 14));
DrawLine(0, height - 1, ui_view_width, height - 1,
flint_darken(c_bg, 42));
if(header.leading_icon.id != 0) {
result.leading_clicked = ui_draw_icon_btn_padded(flint_px(12), flint_px(12),
icon_size, icon_padding,
header.leading_icon,
&hover);
}
toolbar.x = leading_w;
toolbar.y = 0;
toolbar.width = ui_view_width - leading_w;
toolbar.height = height;
if(toolbar.width < 0)
toolbar.width = 0;
}
result.toolbar = ui_draw_toolbar(toolbar);
return result;
}
+34
View File
@@ -0,0 +1,34 @@
#include "ui.h"
void
ui_draw_tutorial_image_placeholder(const char *label, int x, int y, int w, int h)
{
DrawRectangle(x, y, w, h, flint_darken(c_bg, 12));
ui_draw_bevel(x, y, w, h, flint_darken(c_bg, 45), flint_lighten(c_bg, 35));
int font = flint_ui_font();
int tw = flint_text_measure(label, font);
flint_text_draw(label, x + w / 2 - tw / 2, flint_ui_text_y(label, y, h, font), font, c_text);
}
void
ui_draw_tutorial_image(Texture2D texture, const char *fallback, int x, int y, int w, int h)
{
if(texture.id == 0) {
ui_draw_tutorial_image_placeholder(fallback, x, y, w, h);
return;
}
float scale_x = (float)w / (float)texture.width;
float scale_y = (float)h / (float)texture.height;
float scale = scale_x < scale_y ? scale_x : scale_y;
float dst_w = (float)texture.width * scale;
float dst_h = (float)texture.height * scale;
Rectangle src = {0, 0, (float)texture.width, (float)texture.height};
Rectangle dst = {x + ((float)w - dst_w) * 0.5f, y + ((float)h - dst_h) * 0.5f, dst_w, dst_h};
DrawTexturePro(texture, src, dst, (Vector2){0}, 0, WHITE);
}
/* ================================================================
* MODAL DIALOGS
* ================================================================ */
+46
View File
@@ -0,0 +1,46 @@
#ifndef FLINT_UI_INTERNAL_H
#define FLINT_UI_INTERNAL_H
#include "flint_ui.h"
#include "flint_clip.h"
#include "flint_dpi.h"
#include "flint.h"
#include "flint_text_layout.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#if defined(PLATFORM_WEB)
#include <emscripten.h>
#endif
extern Color c_text, c_bg, c_surface, c_circle, c_button, c_button_hover, c_icon;
extern Camera2D g_ui_camera;
extern Texture2D g_ui_gear_icon;
extern Texture2D g_ui_x_icon;
extern int g_ui_slider_active_id;
extern int g_ui_input_blocked;
extern int g_ui_pointer_dragging;
extern int g_ui_pointer_owner;
enum {
UI_POINTER_OWNER_NONE = 0,
UI_POINTER_OWNER_SCROLL,
UI_POINTER_OWNER_HORIZONTAL_SLIDER,
UI_POINTER_OWNER_VERTICAL_SLIDER
};
Vector2 ui_mouse_world(void);
void ui_mark_clickable(void);
void ui_mark_disabled(void);
int ui_pointer_drag_is_horizontal(void);
int ui_hover_effects_enabled(void);
int ui_base_input_captures_click(Vector2 point, int include_pointer_drag);
int ui_input_captures_click_internal(Vector2 point, int include_pointer_drag);
void ui_push_input_clip(Rectangle bounds);
void ui_pop_input_clip(void);
int ui_clampi(int value, int min_value, int max_value);
#endif
+235 -68
View File
@@ -25,6 +25,9 @@ Návod
[tab_settings]
Nastavení
---
[tab_statistics]
Statistiky
---
[play_button]
SPUSTIT
---
@@ -41,7 +44,7 @@ Meditace
Meditace
---
[meditation_manual_intro_text]
Settle into a quiet seat and let this session be simple: arrive, breathe, and begin.
Jednoduchá meditační praxe pro dech, klid a uvědomění.
---
[meditation_manual_text]
Vyberte hudbu, pokud chcete. Gong oznaci zacatek a konec.
@@ -80,19 +83,19 @@ Síť není dostupná
Nelze se připojit k serveru s meditačním audiem. Zkontrolujte síťová oprávnění Androidu a připojení k internetu a zkuste to znovu.
---
[duration_5m]
5m
5 min
---
[duration_15m]
15m
15 min
---
[duration_30m]
30m
30 min
---
[duration_1h]
1h
1 h
---
[duration_2h]
2h
2 h
---
[breath_button]
DÝCHAT
@@ -216,13 +219,13 @@ Pocatecni rychlost
Upravit pocatecni rychlost
---
[breath_animation_label]
Breathing animation
Animace dýchání
---
[breath_animation_linear]
Linear
Lineární
---
[breath_animation_in_out]
In / Out
Nádech / výdech
---
[progressive_start_speed_editor_title]
Pocatecni rychlost
@@ -254,6 +257,9 @@ Kruh
[volume_label]
Hlasitost
---
[show_session_volume_control_label]
Zobrazit ovládání hlasitosti v sezeních
---
[reset_to_defaults_label]
Obnovit výchozí
---
@@ -331,25 +337,25 @@ Data
Data+Nastavení
---
[export_cancelled]
Export cancelled
Export zrušen
---
[no_data_to_export]
No data to export
Žádná data k exportu
---
[no_data_to_delete]
No data to delete
Žádná data ke smazání
---
[delete_all_data_title]
Delete all data?
Smazat všechna data?
---
[delete_all_data_message]
This will permanently delete all saved sessions.
Tím se trvale smažou všechna uložená sezení.
---
[delete_cancelled]
Delete cancelled
Mazání zrušeno
---
[deleted_sessions]
Deleted %lld sessions
Smazáno %lld sezení
---
[toggle_off]
VYP
@@ -397,20 +403,20 @@ Nikdy ho nepoužívejte při řízení,
vestoje ani ve vodě.
---
[tutorial_step_method]
Simply follow 3 steps:
Jednoduše postupujte podle 3 kroků:
1. Breathe in and out 30 times.
2. Exhale and hold.
3. When you feel the urge to breathe, breathe in and hold for 15 seconds.
1. Třicetkrát se nadechněte a vydechněte.
2. Vydechněte a zadržte dech.
3. Když pocítíte potřebu nadechnout se, nadechněte se a zadržte dech na 15 sekund.
Exhale, then repeat the process.
Vydechněte a postup opakujte.
Use the wrench icon %i to adjust rounds, breaths, speed, and pauses.
Ikonou klíče %i upravíte kola, dechy, rychlost a pauzy.
---
[tutorial_step_breathe]
Breathe in and out 30 times.
Třicetkrát se nadechněte a vydechněte.
Find a rhythm that feels natural to you: steady and quick, while still breathing fully.
Najděte rytmus, který vám připadá přirozený: stabilní a rychlý, ale stále s plným dechem.
---
[tutorial_step_progressive_speed]
Postupná rychlost usnadňuje vstup do prvního kola.
@@ -418,14 +424,14 @@ Postupná rychlost usnadňuje vstup do prvního kola.
Když je zapnutá, první kolo začne rychlostí 1 pro prvních 5 nádechů a potom se postupně zvýší na vámi vybranou rychlost.
---
[tutorial_step_exhale_hold]
After 30 breaths, exhale and hold as long as you can.
Po 30 deších vydechněte a zadržte dech tak dlouho, jak můžete.
When you feel the urge to breathe, press the BREATH button.
Když pocítíte potřebu nadechnout se, stiskněte tlačítko DECH.
---
[tutorial_step_inhale_hold]
Inhale fully and hold for 15 seconds.
Plně se nadechněte a zadržte dech na 15 sekund.
Exhale, and the next round will begin.
Vydechněte a začne další kolo.
---
[tutorial_skip_button]
PŘESKOČIT
@@ -475,6 +481,42 @@ Hudba od Elijah_K.
[theme_system]
Systém
---
[theme_sky]
Obloha
---
[theme_ocean]
Oceán
---
[theme_forest]
Les
---
[theme_sunset]
Západ slunce
---
[theme_lavender]
Levandule
---
[theme_cherry]
Třešeň
---
[theme_dawn]
Úsvit
---
[theme_sage]
Šalvěj
---
[theme_sepia]
Sépie
---
[theme_mono]
Mono
---
[theme_mint]
Máta
---
[theme_cobalt]
Kobalt
---
[orientation_label]
Orientace
---
@@ -491,120 +533,245 @@ Na šířku
Senzor
---
[back_button]
Back
Zpět
---
[close_button]
Close
Zavřít
---
[sync_account_title]
Account
Účet
---
[sync_configure_account_button]
Configure Account
Nastavit účet
---
[sync_create_account_button]
Create Account
Vytvořit účet
---
[sync_account_created]
Account created
Účet vytvořen
---
[sync_account_create_failed]
Could not create account
Účet se nepodařilo vytvořit
---
[sync_import_key_button]
Import .key File
Importovat soubor .key
---
[sync_import_key_dialog_title]
Import Account Key
Importovat klíč účtu
---
[sync_private_key_imported]
Account key imported
Klíč účtu importován
---
[sync_private_key_import_failed]
Could not import account key
Klíč účtu se nepodařilo importovat
---
[sync_private_key_import_cancelled]
Account key import cancelled
Import klíče účtu zrušen
---
[sync_liboqs_unavailable]
liboqs is not built for this target.
liboqs není pro tento cíl sestaveno.
---
[sync_public_id_label]
Public ID
Veřejné ID
---
[sync_copy_id_button]
Copy ID
Kopírovat ID
---
[sync_public_id_copied]
Public ID copied
Veřejné ID zkopírováno
---
[sync_backup_key_button]
Backup Key
Zálohovat klíč
---
[sync_remote_label]
Remote
Vzdálený server
---
[sync_connect_button]
Connect
Připojit
---
[sync_connected_button]
Connected
Připojeno
---
[sync_server_url_invalid]
Use https:// or loopback like localhost:8080
Použijte https:// nebo loopback jako localhost:8080
---
[sync_server_saved]
Sync server saved
Synchronizační server uložen
---
[sync_connected]
Remote sync complete
Vzdálená synchronizace dokončena
---
[sync_failed]
Remote sync failed
Vzdálená synchronizace selhala
---
[sync_unavailable]
Remote sync is not available on this platform
Vzdálená synchronizace není na této platformě dostupná
---
[sync_no_account]
Create an account before connecting
Před připojením vytvořte účet
---
[sync_auth_failed]
Remote rejected this account
Vzdálený server odmítl tento účet
---
[sync_backup_warning]
Save this private key somewhere you control. Anyone with it can claim this account.
Uložte tento soukromý klíč někam, kde jej máte pod kontrolou. Kdokoli s ním může převzít tento účet.
---
[sync_backup_title]
Backup Account Key
Zálohovat klíč účtu
---
[sync_save_key_file_button]
Save .key File
Uložit soubor .key
---
[sync_save_key_dialog_title]
Save Account Key
Uložit klíč účtu
---
[sync_private_key_backup_saved]
Account key backup saved
Záloha klíče účtu uložena
---
[sync_private_key_backup_failed]
Could not save account key backup
Zálohu klíče účtu se nepodařilo uložit
---
[sync_private_key_backup_cancelled]
Account key backup cancelled
Záloha klíče účtu zrušena
---
[sync_delete_account_button]
Delete Account
Smazat účet
---
[sync_delete_account_title]
Delete Account?
Smazat účet?
---
[sync_delete_account_message]
Delete this account from the remote server and this device? This cannot be undone.
Smazat tento účet ze vzdáleného serveru a z tohoto zařízení? Tuto akci nelze vrátit zpět.
---
[sync_account_deleted]
Account deleted
Účet smazán
---
[sync_account_delete_cancelled]
Account deletion cancelled
Smazání účtu zrušeno
---
[habit_new_default_name]
Nový návyk
---
[habit_new_title]
Nový návyk
---
[habit_edit_title]
Upravit návyk
---
[habit_name_label]
Název
---
[habit_underline_label]
Podtržení
---
[habit_practice_list_title]
Seznam cvičení
---
[habit_practice_list_info]
Propojte tento návyk se cvičeními. Dny s odpovídajícími záznamy se zobrazí jako splněné a mohou otevřít editor sezení.
---
[habit_counting_title]
Počítání
---
[habit_counting_info]
Více počtů umožní uložit v jednom dni více než jeden záznam. Nechte vypnuto pro jednoduché sledování splněno nebo nesplněno.
---
[habit_multiple_counts_label]
Více počtů
---
[habit_delete_title]
Smazat návyk?
---
[habit_delete_message]
Smazat tento návyk? Tuto akci nelze vrátit zpět.
---
[habit_delete_button]
Smazat návyk
---
[habit_add_new_option]
Přidat nový návyk
---
[habit_load_more_button]
Načíst další
---
[habit_empty_title]
Nejsou vytvořeny žádné návyky
---
[habit_create_button]
Vytvořit návyk
---
[habit_stats_no_rounds_week]
Za poslední týden nejsou žádná kola
---
[habit_stats_current_streak]
Aktuální série
---
[habit_stats_last_30_days]
Posledních 30 dní
---
[habit_stats_wim_hof_hold_rounds]
Kola zádrže dechu Wim Hof
---
[habit_stats_weekday_pattern]
Vzorec podle dnů v týdnu
---
[habit_stats_practice_time]
Čas cvičení
---
[habit_stats_best_hold]
Nejlepší zádrž
---
[habit_stats_total_hold]
Celková zádrž
---
[habit_stats_best_streak]
Nejlepší série
---
[bottom_nav_customize_button]
Upravit spodní navigaci
---
[bottom_nav_customize_title]
Spodní navigace
---
[bottom_nav_add_button]
Přidat položku
---
[bottom_nav_slot_1]
Položka 1
---
[bottom_nav_slot_2]
Položka 2
---
[bottom_nav_slot_3]
Položka 3
---
[bottom_nav_slot_4]
Položka 4
---
[bottom_nav_slot_5]
Položka 5
---
[bottom_nav_slot_6]
Položka 6
---
[bottom_nav_slot_7]
Položka 7
---
[bottom_nav_slot_8]
Položka 8
---
[reset_button]
Obnovit
---
[practice_guide_dropdown]
Zde si vyberte praxi.
---
[practice_guide_manual]
Pred zahajenim praxe si prectete navod, abyste porozumeli celemu cviceni.
---
[practice_guide_sun]
Az budete pripraveni zacit cviceni, pouzijte kartu se sluncem.
---
[practice_guide_config]
Upravte konfiguraci praxe podle svych potreb.
---
+238 -71
View File
@@ -20,11 +20,14 @@ Erledigt
Markieren
---
[tab_manual]
Tutorial
Anleitung
---
[tab_settings]
Einstellungen
---
[tab_statistics]
Statistiken
---
[play_button]
START
---
@@ -41,7 +44,7 @@ Meditation
Meditation
---
[meditation_manual_intro_text]
Settle into a quiet seat and let this session be simple: arrive, breathe, and begin.
Eine einfache Meditationspraxis für Atem, Ruhe und Achtsamkeit.
---
[meditation_manual_text]
Wahlen Sie Musik, wenn Sie mochten. Ein Gong markiert Anfang und Ende.
@@ -80,19 +83,19 @@ Netzwerk nicht verfügbar
Der Meditations-Audioserver konnte nicht erreicht werden. Prüfe die Android-Netzwerkberechtigungen und deine Internetverbindung und versuche es erneut.
---
[duration_5m]
5m
5 Min.
---
[duration_15m]
15m
15 Min.
---
[duration_30m]
30m
30 Min.
---
[duration_1h]
1h
1 Std.
---
[duration_2h]
2h
2 Std.
---
[breath_button]
ATEM
@@ -216,13 +219,13 @@ Startgeschwindigkeit
Startgeschwindigkeit andern
---
[breath_animation_label]
Breathing animation
Atemanimation
---
[breath_animation_linear]
Linear
Gleichmäßig
---
[breath_animation_in_out]
In / Out
Ein / Aus
---
[progressive_start_speed_editor_title]
Startgeschwindigkeit
@@ -254,6 +257,9 @@ Kreis
[volume_label]
Lautstärke
---
[show_session_volume_control_label]
Lautstärkeregler in Sitzungen anzeigen
---
[reset_to_defaults_label]
Auf Standard zurücksetzen
---
@@ -316,7 +322,7 @@ Daten importiert
Ungültige Exportdatei
---
[import_cancelled]
Import cancelled
Import abgebrochen
---
[import_choice_title]
Einstellungen importieren?
@@ -331,25 +337,25 @@ Daten
Daten+Einstellungen
---
[export_cancelled]
Export cancelled
Export abgebrochen
---
[no_data_to_export]
No data to export
Keine Daten zum Exportieren
---
[no_data_to_delete]
No data to delete
Keine Daten zum Löschen
---
[delete_all_data_title]
Delete all data?
Alle Daten löschen?
---
[delete_all_data_message]
This will permanently delete all saved sessions.
Dadurch werden alle gespeicherten Sitzungen dauerhaft gelöscht.
---
[delete_cancelled]
Delete cancelled
Löschen abgebrochen
---
[deleted_sessions]
Deleted %lld sessions
%lld Sitzungen gelöscht
---
[toggle_off]
AUS
@@ -397,20 +403,20 @@ Benutzen Sie sie niemals beim Fahren,
Stehen oder im Wasser.
---
[tutorial_step_method]
Simply follow 3 steps:
Folge einfach 3 Schritten:
1. Breathe in and out 30 times.
2. Exhale and hold.
3. When you feel the urge to breathe, breathe in and hold for 15 seconds.
1. Atme 30 Mal ein und aus.
2. Atme aus und halte.
3. Wenn du den Drang zu atmen spürst, atme ein und halte 15 Sekunden.
Exhale, then repeat the process.
Atme aus und wiederhole den Ablauf.
Use the wrench icon %i to adjust rounds, breaths, speed, and pauses.
Mit dem Schraubenschlüssel-Symbol %i passt du Runden, Atemzüge, Tempo und Pausen an.
---
[tutorial_step_breathe]
Breathe in and out 30 times.
Atme 30 Mal ein und aus.
Find a rhythm that feels natural to you: steady and quick, while still breathing fully.
Finde einen Rhythmus, der sich natürlich anfühlt: gleichmäßig und schnell, aber weiterhin vollständig.
---
[tutorial_step_progressive_speed]
Progressive Geschwindigkeit macht den Einstieg in die erste Runde leichter.
@@ -418,17 +424,17 @@ Progressive Geschwindigkeit macht den Einstieg in die erste Runde leichter.
Wenn sie aktiviert ist, beginnt die erste Runde bei Geschwindigkeit 1 für die ersten 5 Atemzüge und steigt dann schrittweise auf Ihre gewählte Geschwindigkeit.
---
[tutorial_step_exhale_hold]
After 30 breaths, exhale and hold as long as you can.
Atme nach 30 Atemzügen aus und halte so lange du kannst.
When you feel the urge to breathe, press the BREATH button.
Wenn du den Drang zu atmen spürst, drücke die ATEM-Taste.
---
[tutorial_step_inhale_hold]
Inhale fully and hold for 15 seconds.
Atme vollständig ein und halte 15 Sekunden.
Exhale, and the next round will begin.
Atme aus, dann beginnt die nächste Runde.
---
[tutorial_skip_button]
SKIP
ÜBERSPRINGEN
---
[tutorial_back_button]
ZURÜCK
@@ -475,6 +481,42 @@ Musik von Elijah_K.
[theme_system]
System
---
[theme_sky]
Himmel
---
[theme_ocean]
Ozean
---
[theme_forest]
Wald
---
[theme_sunset]
Sonnenuntergang
---
[theme_lavender]
Lavendel
---
[theme_cherry]
Kirsche
---
[theme_dawn]
Morgenrot
---
[theme_sage]
Salbei
---
[theme_sepia]
Sepia
---
[theme_mono]
Mono
---
[theme_mint]
Minze
---
[theme_cobalt]
Kobalt
---
[orientation_label]
Ausrichtung
---
@@ -491,120 +533,245 @@ Querformat
Sensor
---
[back_button]
Back
Zurück
---
[close_button]
Close
Schließen
---
[sync_account_title]
Account
Konto
---
[sync_configure_account_button]
Configure Account
Konto einrichten
---
[sync_create_account_button]
Create Account
Konto erstellen
---
[sync_account_created]
Account created
Konto erstellt
---
[sync_account_create_failed]
Could not create account
Konto konnte nicht erstellt werden
---
[sync_import_key_button]
Import .key File
.key-Datei importieren
---
[sync_import_key_dialog_title]
Import Account Key
Kontoschlüssel importieren
---
[sync_private_key_imported]
Account key imported
Kontoschlüssel importiert
---
[sync_private_key_import_failed]
Could not import account key
Kontoschlüssel konnte nicht importiert werden
---
[sync_private_key_import_cancelled]
Account key import cancelled
Import des Kontoschlüssels abgebrochen
---
[sync_liboqs_unavailable]
liboqs is not built for this target.
liboqs ist für dieses Ziel nicht gebaut.
---
[sync_public_id_label]
Public ID
Öffentliche ID
---
[sync_copy_id_button]
Copy ID
ID kopieren
---
[sync_public_id_copied]
Public ID copied
Öffentliche ID kopiert
---
[sync_backup_key_button]
Backup Key
Schlüssel sichern
---
[sync_remote_label]
Remote
Server
---
[sync_connect_button]
Connect
Verbinden
---
[sync_connected_button]
Connected
Verbunden
---
[sync_server_url_invalid]
Use https:// or loopback like localhost:8080
Nutze https:// oder Loopback wie localhost:8080
---
[sync_server_saved]
Sync server saved
Sync-Server gespeichert
---
[sync_connected]
Remote sync complete
Remote-Sync abgeschlossen
---
[sync_failed]
Remote sync failed
Remote-Sync fehlgeschlagen
---
[sync_unavailable]
Remote sync is not available on this platform
Remote-Sync ist auf dieser Plattform nicht verfügbar
---
[sync_no_account]
Create an account before connecting
Erstelle ein Konto, bevor du dich verbindest
---
[sync_auth_failed]
Remote rejected this account
Remote hat dieses Konto abgelehnt
---
[sync_backup_warning]
Save this private key somewhere you control. Anyone with it can claim this account.
Speichere diesen privaten Schlüssel an einem Ort, den du kontrollierst. Jeder mit diesem Schlüssel kann dieses Konto übernehmen.
---
[sync_backup_title]
Backup Account Key
Kontoschlüssel sichern
---
[sync_save_key_file_button]
Save .key File
.key-Datei speichern
---
[sync_save_key_dialog_title]
Save Account Key
Kontoschlüssel speichern
---
[sync_private_key_backup_saved]
Account key backup saved
Kontoschlüssel-Sicherung gespeichert
---
[sync_private_key_backup_failed]
Could not save account key backup
Kontoschlüssel-Sicherung konnte nicht gespeichert werden
---
[sync_private_key_backup_cancelled]
Account key backup cancelled
Kontoschlüssel-Sicherung abgebrochen
---
[sync_delete_account_button]
Delete Account
Konto löschen
---
[sync_delete_account_title]
Delete Account?
Konto löschen?
---
[sync_delete_account_message]
Delete this account from the remote server and this device? This cannot be undone.
Dieses Konto vom Remote-Server und von diesem Gerät löschen? Das kann nicht rückgängig gemacht werden.
---
[sync_account_deleted]
Account deleted
Konto gelöscht
---
[sync_account_delete_cancelled]
Account deletion cancelled
Kontolöschung abgebrochen
---
[habit_new_default_name]
Neue Gewohnheit
---
[habit_new_title]
Neue Gewohnheit
---
[habit_edit_title]
Gewohnheit bearbeiten
---
[habit_name_label]
Bezeichnung
---
[habit_underline_label]
Unterstreichung
---
[habit_practice_list_title]
Übungsliste
---
[habit_practice_list_info]
Verknüpfe diese Gewohnheit mit Übungssitzungen. Tage mit passenden Sitzungen werden als erledigt angezeigt und können den Sitzungseditor öffnen.
---
[habit_counting_title]
Zählen
---
[habit_counting_info]
Mehrfachzählungen erlauben mehr als einen Eintrag pro Tag. Lass es aus für einfaches Erledigt-oder-nicht-Tracking.
---
[habit_multiple_counts_label]
Mehrfachzählungen
---
[habit_delete_title]
Gewohnheit löschen?
---
[habit_delete_message]
Diese Gewohnheit löschen? Das kann nicht rückgängig gemacht werden.
---
[habit_delete_button]
Gewohnheit löschen
---
[habit_add_new_option]
Neue Gewohnheit hinzufügen
---
[habit_load_more_button]
Mehr laden
---
[habit_empty_title]
Keine Gewohnheiten erstellt
---
[habit_create_button]
Gewohnheit erstellen
---
[habit_stats_no_rounds_week]
Keine Runden in der letzten Woche
---
[habit_stats_current_streak]
Aktuelle Serie
---
[habit_stats_last_30_days]
Letzte 30 Tage
---
[habit_stats_wim_hof_hold_rounds]
Wim-Hof-Atemhalte-Runden
---
[habit_stats_weekday_pattern]
Wochentagsmuster
---
[habit_stats_practice_time]
Übungszeit
---
[habit_stats_best_hold]
Beste Atemhaltezeit
---
[habit_stats_total_hold]
Gesamte Atemhaltezeit
---
[habit_stats_best_streak]
Beste Serie
---
[bottom_nav_customize_button]
Untere Navigation anpassen
---
[bottom_nav_customize_title]
Untere Navigation
---
[bottom_nav_add_button]
Eintrag hinzufügen
---
[bottom_nav_slot_1]
Eintrag 1
---
[bottom_nav_slot_2]
Eintrag 2
---
[bottom_nav_slot_3]
Eintrag 3
---
[bottom_nav_slot_4]
Eintrag 4
---
[bottom_nav_slot_5]
Eintrag 5
---
[bottom_nav_slot_6]
Eintrag 6
---
[bottom_nav_slot_7]
Eintrag 7
---
[bottom_nav_slot_8]
Eintrag 8
---
[reset_button]
Zurücksetzen
---
[practice_guide_dropdown]
Wahle hier deine Praxis aus.
---
[practice_guide_manual]
Lies das Tutorial, bevor du eine Praxis startest, damit du die ganze Uebung verstehst.
---
[practice_guide_sun]
Nutze den Sonnen-Tab, wenn du bereit bist, die Uebung zu starten.
---
[practice_guide_config]
Passe die Konfiguration der Praxis an deine Anforderungen an.
---
+168
View File
@@ -25,6 +25,9 @@ Tutorial
[tab_settings]
Settings
---
[tab_statistics]
Statistics
---
[play_button]
PLAY
---
@@ -209,6 +212,42 @@ Theme mode
[theme_system]
System
---
[theme_sky]
Sky
---
[theme_ocean]
Ocean
---
[theme_forest]
Forest
---
[theme_sunset]
Sunset
---
[theme_lavender]
Lavender
---
[theme_cherry]
Cherry
---
[theme_dawn]
Dawn
---
[theme_sage]
Sage
---
[theme_sepia]
Sepia
---
[theme_mono]
Mono
---
[theme_mint]
Mint
---
[theme_cobalt]
Cobalt
---
[orientation_label]
Orientation
---
@@ -275,6 +314,9 @@ Circle
[volume_label]
Volume
---
[show_session_volume_control_label]
Show volume control in sessions
---
[reset_to_defaults_label]
Reset to defaults
---
@@ -608,3 +650,129 @@ Account deleted
[sync_account_delete_cancelled]
Account deletion cancelled
---
[habit_new_default_name]
New Habit
---
[habit_new_title]
New Habit
---
[habit_edit_title]
Edit Habit
---
[habit_name_label]
Name
---
[habit_underline_label]
Underline
---
[habit_practice_list_title]
Practice list
---
[habit_practice_list_info]
Link this habit to practice sessions. Days with matching sessions will show as completed and can open the session editor.
---
[habit_counting_title]
Counting
---
[habit_counting_info]
Multiple counts lets one day store more than one count. Leave it off for simple done or not done habit tracking.
---
[habit_multiple_counts_label]
Multiple counts
---
[habit_delete_title]
Delete habit?
---
[habit_delete_message]
Delete this habit? This cannot be undone.
---
[habit_delete_button]
Delete Habit
---
[habit_add_new_option]
Add new habit
---
[habit_load_more_button]
Load more
---
[habit_empty_title]
No habits created
---
[habit_create_button]
Create habit
---
[habit_stats_no_rounds_week]
No rounds in the last week
---
[habit_stats_current_streak]
Current streak
---
[habit_stats_last_30_days]
Last 30 days
---
[habit_stats_wim_hof_hold_rounds]
Wim Hof hold rounds
---
[habit_stats_weekday_pattern]
Weekday pattern
---
[habit_stats_practice_time]
Practice time
---
[habit_stats_best_hold]
Best hold
---
[habit_stats_total_hold]
Total hold
---
[habit_stats_best_streak]
Best streak
---
[bottom_nav_customize_button]
Customize bottom navigation
---
[bottom_nav_customize_title]
Bottom Navigation
---
[bottom_nav_add_button]
Add item
---
[bottom_nav_slot_1]
Item 1
---
[bottom_nav_slot_2]
Item 2
---
[bottom_nav_slot_3]
Item 3
---
[bottom_nav_slot_4]
Item 4
---
[bottom_nav_slot_5]
Item 5
---
[bottom_nav_slot_6]
Item 6
---
[bottom_nav_slot_7]
Item 7
---
[bottom_nav_slot_8]
Item 8
---
[reset_button]
Reset
---
[practice_guide_dropdown]
Choose your practice here.
---
[practice_guide_manual]
Read the tutorial before starting a practice so you understand the full exercise.
---
[practice_guide_sun]
Use the sun tab when you are ready to start the exercise.
---
[practice_guide_config]
Change the practice configuration to meet your standards.
---
+237 -70
View File
@@ -20,11 +20,14 @@ Hecho
Marcar
---
[tab_manual]
Tutorial
Manual
---
[tab_settings]
Configuración
---
[tab_statistics]
Estadísticas
---
[play_button]
REPRODUCIR
---
@@ -41,7 +44,7 @@ Meditación
Meditación
---
[meditation_manual_intro_text]
Settle into a quiet seat and let this session be simple: arrive, breathe, and begin.
Una práctica de meditación simple para respirar, calmarte y estar presente.
---
[meditation_manual_text]
Elige musica si quieres. Un gong marca el inicio y el final.
@@ -80,19 +83,19 @@ Red no disponible
No se pudo acceder al servidor de audio de meditación. Revisa los permisos de red de Android y tu conexión a internet, e inténtalo de nuevo.
---
[duration_5m]
5m
5 min
---
[duration_15m]
15m
15 min
---
[duration_30m]
30m
30 min
---
[duration_1h]
1h
1 h
---
[duration_2h]
2h
2 h
---
[breath_button]
RESPIRACIÓN
@@ -216,13 +219,13 @@ Velocidad inicial
Modificar velocidad inicial
---
[breath_animation_label]
Breathing animation
Animación de respiración
---
[breath_animation_linear]
Linear
Lineal
---
[breath_animation_in_out]
In / Out
Entrada / salida
---
[progressive_start_speed_editor_title]
Velocidad inicial
@@ -254,6 +257,9 @@ Circulo
[volume_label]
Volumen
---
[show_session_volume_control_label]
Mostrar control de volumen en las sesiones
---
[reset_to_defaults_label]
Restablecer valores predeterminados
---
@@ -316,7 +322,7 @@ Datos importados
Archivo de exportación no válido
---
[import_cancelled]
Import cancelled
Importación cancelada
---
[import_choice_title]
¿Importar ajustes?
@@ -331,25 +337,25 @@ Datos
Datos+Ajustes
---
[export_cancelled]
Export cancelled
Exportación cancelada
---
[no_data_to_export]
No data to export
No hay datos para exportar
---
[no_data_to_delete]
No data to delete
No hay datos para eliminar
---
[delete_all_data_title]
Delete all data?
¿Eliminar todos los datos?
---
[delete_all_data_message]
This will permanently delete all saved sessions.
Esto eliminará permanentemente todas las sesiones guardadas.
---
[delete_cancelled]
Delete cancelled
Eliminación cancelada
---
[deleted_sessions]
Deleted %lld sessions
%lld sesiones eliminadas
---
[toggle_off]
APAGADO
@@ -397,20 +403,20 @@ Nunca la use mientras conduce,
de pie o en el agua.
---
[tutorial_step_method]
Simply follow 3 steps:
Sigue 3 pasos:
1. Breathe in and out 30 times.
2. Exhale and hold.
3. When you feel the urge to breathe, breathe in and hold for 15 seconds.
1. Inhala y exhala 30 veces.
2. Exhala y mantén.
3. Cuando sientas la necesidad de respirar, inhala y mantén durante 15 segundos.
Exhale, then repeat the process.
Exhala y repite el proceso.
Use the wrench icon %i to adjust rounds, breaths, speed, and pauses.
Usa el icono de llave %i para ajustar rondas, respiraciones, velocidad y pausas.
---
[tutorial_step_breathe]
Breathe in and out 30 times.
Inhala y exhala 30 veces.
Find a rhythm that feels natural to you: steady and quick, while still breathing fully.
Encuentra un ritmo que se sienta natural: estable y rápido, pero respirando completamente.
---
[tutorial_step_progressive_speed]
La velocidad progresiva hace que la primera ronda sea más fácil de empezar.
@@ -418,14 +424,14 @@ La velocidad progresiva hace que la primera ronda sea más fácil de empezar.
Cuando está activada, la primera ronda comienza en velocidad 1 durante las primeras 5 respiraciones y luego aumenta gradualmente hasta la velocidad elegida.
---
[tutorial_step_exhale_hold]
After 30 breaths, exhale and hold as long as you can.
Después de 30 respiraciones, exhala y mantén todo lo que puedas.
When you feel the urge to breathe, press the BREATH button.
Cuando sientas la necesidad de respirar, presiona el botón RESPIRAR.
---
[tutorial_step_inhale_hold]
Inhale fully and hold for 15 seconds.
Inhala completamente y mantén durante 15 segundos.
Exhale, and the next round will begin.
Exhala y comenzará la siguiente ronda.
---
[tutorial_skip_button]
OMITIR
@@ -475,6 +481,42 @@ Música de Elijah_K.
[theme_system]
Sistema
---
[theme_sky]
Cielo
---
[theme_ocean]
Océano
---
[theme_forest]
Bosque
---
[theme_sunset]
Atardecer
---
[theme_lavender]
Lavanda
---
[theme_cherry]
Cereza
---
[theme_dawn]
Amanecer
---
[theme_sage]
Salvia
---
[theme_sepia]
Sepia
---
[theme_mono]
Mono
---
[theme_mint]
Menta
---
[theme_cobalt]
Cobalto
---
[orientation_label]
Orientación
---
@@ -491,120 +533,245 @@ Horizontal
Sensor
---
[back_button]
Back
Atrás
---
[close_button]
Close
Cerrar
---
[sync_account_title]
Account
Cuenta
---
[sync_configure_account_button]
Configure Account
Configurar cuenta
---
[sync_create_account_button]
Create Account
Crear cuenta
---
[sync_account_created]
Account created
Cuenta creada
---
[sync_account_create_failed]
Could not create account
No se pudo crear la cuenta
---
[sync_import_key_button]
Import .key File
Importar archivo .key
---
[sync_import_key_dialog_title]
Import Account Key
Importar clave de cuenta
---
[sync_private_key_imported]
Account key imported
Clave de cuenta importada
---
[sync_private_key_import_failed]
Could not import account key
No se pudo importar la clave de cuenta
---
[sync_private_key_import_cancelled]
Account key import cancelled
Importación de clave cancelada
---
[sync_liboqs_unavailable]
liboqs is not built for this target.
liboqs no está compilado para este destino.
---
[sync_public_id_label]
Public ID
ID público
---
[sync_copy_id_button]
Copy ID
Copiar ID
---
[sync_public_id_copied]
Public ID copied
ID público copiado
---
[sync_backup_key_button]
Backup Key
Respaldar clave
---
[sync_remote_label]
Remote
Remoto
---
[sync_connect_button]
Connect
Conectar
---
[sync_connected_button]
Connected
Conectado
---
[sync_server_url_invalid]
Use https:// or loopback like localhost:8080
Usa https:// o loopback como localhost:8080
---
[sync_server_saved]
Sync server saved
Servidor de sincronización guardado
---
[sync_connected]
Remote sync complete
Sincronización remota completa
---
[sync_failed]
Remote sync failed
Falló la sincronización remota
---
[sync_unavailable]
Remote sync is not available on this platform
La sincronización remota no está disponible en esta plataforma
---
[sync_no_account]
Create an account before connecting
Crea una cuenta antes de conectar
---
[sync_auth_failed]
Remote rejected this account
El servidor remoto rechazó esta cuenta
---
[sync_backup_warning]
Save this private key somewhere you control. Anyone with it can claim this account.
Guarda esta clave privada en un lugar que controles. Cualquiera con ella puede reclamar esta cuenta.
---
[sync_backup_title]
Backup Account Key
Respaldar clave de cuenta
---
[sync_save_key_file_button]
Save .key File
Guardar archivo .key
---
[sync_save_key_dialog_title]
Save Account Key
Guardar clave de cuenta
---
[sync_private_key_backup_saved]
Account key backup saved
Respaldo de clave guardado
---
[sync_private_key_backup_failed]
Could not save account key backup
No se pudo guardar el respaldo de la clave
---
[sync_private_key_backup_cancelled]
Account key backup cancelled
Respaldo de clave cancelado
---
[sync_delete_account_button]
Delete Account
Eliminar cuenta
---
[sync_delete_account_title]
Delete Account?
¿Eliminar cuenta?
---
[sync_delete_account_message]
Delete this account from the remote server and this device? This cannot be undone.
¿Eliminar esta cuenta del servidor remoto y de este dispositivo? Esta acción no se puede deshacer.
---
[sync_account_deleted]
Account deleted
Cuenta eliminada
---
[sync_account_delete_cancelled]
Account deletion cancelled
Eliminación de cuenta cancelada
---
[habit_new_default_name]
Nuevo hábito
---
[habit_new_title]
Nuevo hábito
---
[habit_edit_title]
Editar hábito
---
[habit_name_label]
Nombre
---
[habit_underline_label]
Subrayado
---
[habit_practice_list_title]
Lista de prácticas
---
[habit_practice_list_info]
Vincula este hábito con sesiones de práctica. Los días con sesiones coincidentes aparecerán como completados y podrán abrir el editor de sesión.
---
[habit_counting_title]
Conteo
---
[habit_counting_info]
Múltiples conteos permite guardar más de un conteo en un día. Déjalo apagado para un seguimiento simple de hecho o no hecho.
---
[habit_multiple_counts_label]
Múltiples conteos
---
[habit_delete_title]
¿Eliminar hábito?
---
[habit_delete_message]
¿Eliminar este hábito? Esta acción no se puede deshacer.
---
[habit_delete_button]
Eliminar hábito
---
[habit_add_new_option]
Agregar nuevo hábito
---
[habit_load_more_button]
Cargar más
---
[habit_empty_title]
No hay hábitos creados
---
[habit_create_button]
Crear hábito
---
[habit_stats_no_rounds_week]
No hay rondas en la última semana
---
[habit_stats_current_streak]
Racha actual
---
[habit_stats_last_30_days]
Últimos 30 días
---
[habit_stats_wim_hof_hold_rounds]
Rondas de retención Wim Hof
---
[habit_stats_weekday_pattern]
Patrón semanal
---
[habit_stats_practice_time]
Tiempo de práctica
---
[habit_stats_best_hold]
Mejor retención
---
[habit_stats_total_hold]
Retención total
---
[habit_stats_best_streak]
Mejor racha
---
[bottom_nav_customize_button]
Personalizar navegación inferior
---
[bottom_nav_customize_title]
Navegación inferior
---
[bottom_nav_add_button]
Añadir elemento
---
[bottom_nav_slot_1]
Elemento 1
---
[bottom_nav_slot_2]
Elemento 2
---
[bottom_nav_slot_3]
Elemento 3
---
[bottom_nav_slot_4]
Elemento 4
---
[bottom_nav_slot_5]
Elemento 5
---
[bottom_nav_slot_6]
Elemento 6
---
[bottom_nav_slot_7]
Elemento 7
---
[bottom_nav_slot_8]
Elemento 8
---
[reset_button]
Restablecer
---
[practice_guide_dropdown]
Elige tu practica aqui.
---
[practice_guide_manual]
Lee el tutorial antes de iniciar una practica para entender todo el ejercicio.
---
[practice_guide_sun]
Usa la pestana del sol cuando estes listo para iniciar el ejercicio.
---
[practice_guide_config]
Cambia la configuracion de la practica segun tus necesidades.
---
+239 -72
View File
@@ -25,6 +25,9 @@ Tutoriel
[tab_settings]
Réglages
---
[tab_statistics]
Statistiques
---
[play_button]
DÉMARRER
---
@@ -41,7 +44,7 @@ Méditation
Méditation
---
[meditation_manual_intro_text]
Settle into a quiet seat and let this session be simple: arrive, breathe, and begin.
Une pratique de méditation simple pour respirer, se calmer et être présent.
---
[meditation_manual_text]
Choisissez de la musique si vous le souhaitez. Un gong marque le debut et la fin.
@@ -80,19 +83,19 @@ Réseau indisponible
Impossible de joindre le serveur audio de méditation. Vérifiez les autorisations réseau d'Android et votre connexion internet, puis réessayez.
---
[duration_5m]
5m
5 min
---
[duration_15m]
15m
15 min
---
[duration_30m]
30m
30 min
---
[duration_1h]
1h
1 h
---
[duration_2h]
2h
2 h
---
[breath_button]
RESPIRER
@@ -170,7 +173,7 @@ Respiration
Séance
---
[settings_tab_app]
App
Appli
---
[settings_tab_theme]
Thème
@@ -216,13 +219,13 @@ Vitesse de depart
Modifier la vitesse de depart
---
[breath_animation_label]
Breathing animation
Animation de respiration
---
[breath_animation_linear]
Linear
Linéaire
---
[breath_animation_in_out]
In / Out
Inspiration / expiration
---
[progressive_start_speed_editor_title]
Vitesse de depart
@@ -254,6 +257,9 @@ Cercle
[volume_label]
Volume
---
[show_session_volume_control_label]
Afficher le contrôle du volume pendant les séances
---
[reset_to_defaults_label]
Réinitialiser
---
@@ -331,31 +337,31 @@ Données
Données+Réglages
---
[export_cancelled]
Export cancelled
Exportation annulée
---
[no_data_to_export]
No data to export
Aucune donnée à exporter
---
[no_data_to_delete]
No data to delete
Aucune donnée à supprimer
---
[delete_all_data_title]
Delete all data?
Supprimer toutes les données ?
---
[delete_all_data_message]
This will permanently delete all saved sessions.
Cela supprimera définitivement toutes les séances enregistrées.
---
[delete_cancelled]
Delete cancelled
Suppression annulée
---
[deleted_sessions]
Deleted %lld sessions
%lld séances supprimées
---
[toggle_off]
OFF
DÉSACTIVÉ
---
[toggle_on]
ON
ACTIVÉ
---
[theme_light]
Clair
@@ -397,20 +403,20 @@ Ne l'utilisez jamais en conduisant,
debout ou dans l'eau.
---
[tutorial_step_method]
Simply follow 3 steps:
Suivez simplement 3 étapes :
1. Breathe in and out 30 times.
2. Exhale and hold.
3. When you feel the urge to breathe, breathe in and hold for 15 seconds.
1. Inspirez et expirez 30 fois.
2. Expirez et retenez votre souffle.
3. Quand vous ressentez le besoin de respirer, inspirez et retenez 15 secondes.
Exhale, then repeat the process.
Expirez, puis recommencez.
Use the wrench icon %i to adjust rounds, breaths, speed, and pauses.
Utilisez l’icône clé %i pour ajuster les séries, respirations, vitesse et pauses.
---
[tutorial_step_breathe]
Breathe in and out 30 times.
Inspirez et expirez 30 fois.
Find a rhythm that feels natural to you: steady and quick, while still breathing fully.
Trouvez un rythme naturel : régulier et rapide, tout en respirant pleinement.
---
[tutorial_step_progressive_speed]
La vitesse progressive rend le premier cycle plus facile à commencer.
@@ -418,17 +424,17 @@ La vitesse progressive rend le premier cycle plus facile à commencer.
Quand elle est activée, le premier cycle commence à la vitesse 1 pendant les 5 premières respirations, puis augmente progressivement jusqu'à la vitesse choisie.
---
[tutorial_step_exhale_hold]
After 30 breaths, exhale and hold as long as you can.
Après 30 respirations, expirez et retenez aussi longtemps que possible.
When you feel the urge to breathe, press the BREATH button.
Quand vous ressentez le besoin de respirer, appuyez sur le bouton RESPIRER.
---
[tutorial_step_inhale_hold]
Inhale fully and hold for 15 seconds.
Inspirez pleinement et retenez 15 secondes.
Exhale, and the next round will begin.
Expirez, puis la série suivante commencera.
---
[tutorial_skip_button]
SKIP
PASSER
---
[tutorial_back_button]
RETOUR
@@ -475,6 +481,42 @@ Musique par Elijah_K.
[theme_system]
Système
---
[theme_sky]
Ciel
---
[theme_ocean]
Océan
---
[theme_forest]
Forêt
---
[theme_sunset]
Coucher de soleil
---
[theme_lavender]
Lavande
---
[theme_cherry]
Cerise
---
[theme_dawn]
Aube
---
[theme_sage]
Sauge
---
[theme_sepia]
Sépia
---
[theme_mono]
Mono
---
[theme_mint]
Menthe
---
[theme_cobalt]
Cobalt
---
[orientation_label]
Orientation
---
@@ -491,120 +533,245 @@ Paysage
Capteur
---
[back_button]
Back
Retour
---
[close_button]
Close
Fermer
---
[sync_account_title]
Account
Compte
---
[sync_configure_account_button]
Configure Account
Configurer le compte
---
[sync_create_account_button]
Create Account
Créer un compte
---
[sync_account_created]
Account created
Compte créé
---
[sync_account_create_failed]
Could not create account
Impossible de créer le compte
---
[sync_import_key_button]
Import .key File
Importer un fichier .key
---
[sync_import_key_dialog_title]
Import Account Key
Importer la clé du compte
---
[sync_private_key_imported]
Account key imported
Clé du compte importée
---
[sync_private_key_import_failed]
Could not import account key
Impossible d’importer la clé du compte
---
[sync_private_key_import_cancelled]
Account key import cancelled
Importation de la clé annulée
---
[sync_liboqs_unavailable]
liboqs is not built for this target.
liboqs n’est pas compilé pour cette cible.
---
[sync_public_id_label]
Public ID
ID public
---
[sync_copy_id_button]
Copy ID
Copier l’ID
---
[sync_public_id_copied]
Public ID copied
ID public copié
---
[sync_backup_key_button]
Backup Key
Sauvegarder la clé
---
[sync_remote_label]
Remote
Distant
---
[sync_connect_button]
Connect
Connecter
---
[sync_connected_button]
Connected
Connecté
---
[sync_server_url_invalid]
Use https:// or loopback like localhost:8080
Utilisez https:// ou une boucle locale comme localhost:8080
---
[sync_server_saved]
Sync server saved
Serveur de synchronisation enregistré
---
[sync_connected]
Remote sync complete
Synchronisation distante terminée
---
[sync_failed]
Remote sync failed
Échec de la synchronisation distante
---
[sync_unavailable]
Remote sync is not available on this platform
La synchronisation distante n’est pas disponible sur cette plateforme
---
[sync_no_account]
Create an account before connecting
Créez un compte avant de vous connecter
---
[sync_auth_failed]
Remote rejected this account
Le serveur distant a rejeté ce compte
---
[sync_backup_warning]
Save this private key somewhere you control. Anyone with it can claim this account.
Enregistrez cette clé privée dans un endroit que vous contrôlez. Toute personne qui la possède peut revendiquer ce compte.
---
[sync_backup_title]
Backup Account Key
Sauvegarder la clé du compte
---
[sync_save_key_file_button]
Save .key File
Enregistrer le fichier .key
---
[sync_save_key_dialog_title]
Save Account Key
Enregistrer la clé du compte
---
[sync_private_key_backup_saved]
Account key backup saved
Sauvegarde de la clé enregistrée
---
[sync_private_key_backup_failed]
Could not save account key backup
Impossible d’enregistrer la sauvegarde de la clé
---
[sync_private_key_backup_cancelled]
Account key backup cancelled
Sauvegarde de la clé annulée
---
[sync_delete_account_button]
Delete Account
Supprimer le compte
---
[sync_delete_account_title]
Delete Account?
Supprimer le compte ?
---
[sync_delete_account_message]
Delete this account from the remote server and this device? This cannot be undone.
Supprimer ce compte du serveur distant et de cet appareil ? Cette action est irréversible.
---
[sync_account_deleted]
Account deleted
Compte supprimé
---
[sync_account_delete_cancelled]
Account deletion cancelled
Suppression du compte annulée
---
[habit_new_default_name]
Nouvelle habitude
---
[habit_new_title]
Nouvelle habitude
---
[habit_edit_title]
Modifier l'habitude
---
[habit_name_label]
Nom
---
[habit_underline_label]
Soulignement
---
[habit_practice_list_title]
Liste des pratiques
---
[habit_practice_list_info]
Associez cette habitude aux séances de pratique. Les jours avec des séances correspondantes apparaîtront comme terminés et pourront ouvrir l'éditeur de séance.
---
[habit_counting_title]
Comptage
---
[habit_counting_info]
Les comptages multiples permettent d'enregistrer plus d'un compte dans une journée. Laissez désactivé pour un suivi simple fait ou non fait.
---
[habit_multiple_counts_label]
Comptages multiples
---
[habit_delete_title]
Supprimer l'habitude ?
---
[habit_delete_message]
Supprimer cette habitude ? Cette action est irréversible.
---
[habit_delete_button]
Supprimer l'habitude
---
[habit_add_new_option]
Ajouter une nouvelle habitude
---
[habit_load_more_button]
Charger plus
---
[habit_empty_title]
Aucune habitude créée
---
[habit_create_button]
Créer une habitude
---
[habit_stats_no_rounds_week]
Aucune série la semaine dernière
---
[habit_stats_current_streak]
Série actuelle
---
[habit_stats_last_30_days]
30 derniers jours
---
[habit_stats_wim_hof_hold_rounds]
Séries de rétention Wim Hof
---
[habit_stats_weekday_pattern]
Rythme par jour
---
[habit_stats_practice_time]
Temps de pratique
---
[habit_stats_best_hold]
Meilleure rétention
---
[habit_stats_total_hold]
Rétention totale
---
[habit_stats_best_streak]
Meilleure série
---
[bottom_nav_customize_button]
Personnaliser la navigation du bas
---
[bottom_nav_customize_title]
Navigation du bas
---
[bottom_nav_add_button]
Ajouter un élément
---
[bottom_nav_slot_1]
Élément 1
---
[bottom_nav_slot_2]
Élément 2
---
[bottom_nav_slot_3]
Élément 3
---
[bottom_nav_slot_4]
Élément 4
---
[bottom_nav_slot_5]
Élément 5
---
[bottom_nav_slot_6]
Élément 6
---
[bottom_nav_slot_7]
Élément 7
---
[bottom_nav_slot_8]
Élément 8
---
[reset_button]
Réinitialiser
---
[practice_guide_dropdown]
Choisissez votre pratique ici.
---
[practice_guide_manual]
Lisez le tutoriel avant de commencer une pratique afin de comprendre tout l'exercice.
---
[practice_guide_sun]
Utilisez l'onglet soleil lorsque vous etes pret a commencer l'exercice.
---
[practice_guide_config]
Modifiez la configuration de la pratique selon vos besoins.
---
+234 -67
View File
@@ -20,11 +20,14 @@ Selesai
Tandai
---
[tab_manual]
Tutorial
Manual
---
[tab_settings]
Pengaturan
---
[tab_statistics]
Statistik
---
[play_button]
MULAI
---
@@ -41,7 +44,7 @@ Meditasi
Meditasi
---
[meditation_manual_intro_text]
Settle into a quiet seat and let this session be simple: arrive, breathe, and begin.
Latihan meditasi sederhana untuk napas, tenang, dan sadar.
---
[meditation_manual_text]
Pilih musik jika Anda mau. Gong menandai awal dan akhir.
@@ -80,13 +83,13 @@ Jaringan tidak tersedia
Tidak dapat menjangkau server audio meditasi. Periksa izin jaringan Android dan koneksi internetmu, lalu coba lagi.
---
[duration_5m]
5m
5 mnt
---
[duration_15m]
15m
15 mnt
---
[duration_30m]
30m
30 mnt
---
[duration_1h]
1j
@@ -216,13 +219,13 @@ Kecepatan awal
Ubah kecepatan awal
---
[breath_animation_label]
Breathing animation
Animasi napas
---
[breath_animation_linear]
Linear
Lurus
---
[breath_animation_in_out]
In / Out
Masuk / keluar
---
[progressive_start_speed_editor_title]
Kecepatan awal
@@ -254,6 +257,9 @@ Lingkaran
[volume_label]
Volume
---
[show_session_volume_control_label]
Tampilkan kontrol volume di sesi
---
[reset_to_defaults_label]
Reset ke default
---
@@ -331,25 +337,25 @@ Data
Data+Pengaturan
---
[export_cancelled]
Export cancelled
Ekspor dibatalkan
---
[no_data_to_export]
No data to export
Tidak ada data untuk diekspor
---
[no_data_to_delete]
No data to delete
Tidak ada data untuk dihapus
---
[delete_all_data_title]
Delete all data?
Hapus semua data?
---
[delete_all_data_message]
This will permanently delete all saved sessions.
Ini akan menghapus semua sesi tersimpan secara permanen.
---
[delete_cancelled]
Delete cancelled
Penghapusan dibatalkan
---
[deleted_sessions]
Deleted %lld sessions
%lld sesi dihapus
---
[toggle_off]
MATI
@@ -397,20 +403,20 @@ Jangan gunakan saat mengemudi,
berdiri, atau di dalam air.
---
[tutorial_step_method]
Simply follow 3 steps:
Ikuti 3 langkah:
1. Breathe in and out 30 times.
2. Exhale and hold.
3. When you feel the urge to breathe, breathe in and hold for 15 seconds.
1. Tarik dan hembuskan napas 30 kali.
2. Hembuskan dan tahan.
3. Saat ingin bernapas, tarik napas dan tahan selama 15 detik.
Exhale, then repeat the process.
Hembuskan, lalu ulangi prosesnya.
Use the wrench icon %i to adjust rounds, breaths, speed, and pauses.
Gunakan ikon kunci pas %i untuk mengatur ronde, napas, kecepatan, dan jeda.
---
[tutorial_step_breathe]
Breathe in and out 30 times.
Tarik dan hembuskan napas 30 kali.
Find a rhythm that feels natural to you: steady and quick, while still breathing fully.
Temukan ritme yang terasa alami: stabil dan cepat, tetapi tetap bernapas penuh.
---
[tutorial_step_progressive_speed]
Kecepatan progresif membuat ronde pertama lebih mudah dimulai.
@@ -418,14 +424,14 @@ Kecepatan progresif membuat ronde pertama lebih mudah dimulai.
Saat aktif, ronde pertama dimulai pada kecepatan 1 untuk 5 nafas pertama, lalu bertambah hingga kecepatan yang dipilih.
---
[tutorial_step_exhale_hold]
After 30 breaths, exhale and hold as long as you can.
Setelah 30 napas, hembuskan dan tahan selama mungkin.
When you feel the urge to breathe, press the BREATH button.
Saat ingin bernapas, tekan tombol NAPAS.
---
[tutorial_step_inhale_hold]
Inhale fully and hold for 15 seconds.
Tarik napas penuh dan tahan selama 15 detik.
Exhale, and the next round will begin.
Hembuskan, lalu ronde berikutnya akan mulai.
---
[tutorial_skip_button]
LEWATI
@@ -475,6 +481,42 @@ Musik oleh Elijah_K.
[theme_system]
Sistem
---
[theme_sky]
Langit
---
[theme_ocean]
Samudra
---
[theme_forest]
Hutan
---
[theme_sunset]
Senja
---
[theme_lavender]
Lavender
---
[theme_cherry]
Ceri
---
[theme_dawn]
Fajar
---
[theme_sage]
Sage
---
[theme_sepia]
Sepia
---
[theme_mono]
Mono
---
[theme_mint]
Mint
---
[theme_cobalt]
Kobalt
---
[orientation_label]
Orientasi
---
@@ -491,120 +533,245 @@ Lanskap
Sensor
---
[back_button]
Back
Kembali
---
[close_button]
Close
Tutup
---
[sync_account_title]
Account
Akun
---
[sync_configure_account_button]
Configure Account
Konfigurasi akun
---
[sync_create_account_button]
Create Account
Buat akun
---
[sync_account_created]
Account created
Akun dibuat
---
[sync_account_create_failed]
Could not create account
Tidak dapat membuat akun
---
[sync_import_key_button]
Import .key File
Impor file .key
---
[sync_import_key_dialog_title]
Import Account Key
Impor kunci akun
---
[sync_private_key_imported]
Account key imported
Kunci akun diimpor
---
[sync_private_key_import_failed]
Could not import account key
Tidak dapat mengimpor kunci akun
---
[sync_private_key_import_cancelled]
Account key import cancelled
Impor kunci akun dibatalkan
---
[sync_liboqs_unavailable]
liboqs is not built for this target.
liboqs tidak dibangun untuk target ini.
---
[sync_public_id_label]
Public ID
ID publik
---
[sync_copy_id_button]
Copy ID
Salin ID
---
[sync_public_id_copied]
Public ID copied
ID publik disalin
---
[sync_backup_key_button]
Backup Key
Cadangkan kunci
---
[sync_remote_label]
Remote
Jarak jauh
---
[sync_connect_button]
Connect
Hubungkan
---
[sync_connected_button]
Connected
Terhubung
---
[sync_server_url_invalid]
Use https:// or loopback like localhost:8080
Gunakan https:// atau loopback seperti localhost:8080
---
[sync_server_saved]
Sync server saved
Server sinkronisasi disimpan
---
[sync_connected]
Remote sync complete
Sinkronisasi remote selesai
---
[sync_failed]
Remote sync failed
Sinkronisasi remote gagal
---
[sync_unavailable]
Remote sync is not available on this platform
Sinkronisasi remote tidak tersedia di platform ini
---
[sync_no_account]
Create an account before connecting
Buat akun sebelum menghubungkan
---
[sync_auth_failed]
Remote rejected this account
Remote menolak akun ini
---
[sync_backup_warning]
Save this private key somewhere you control. Anyone with it can claim this account.
Simpan kunci pribadi ini di tempat yang Anda kendalikan. Siapa pun yang memilikinya dapat mengambil akun ini.
---
[sync_backup_title]
Backup Account Key
Cadangkan kunci akun
---
[sync_save_key_file_button]
Save .key File
Simpan file .key
---
[sync_save_key_dialog_title]
Save Account Key
Simpan kunci akun
---
[sync_private_key_backup_saved]
Account key backup saved
Cadangan kunci akun disimpan
---
[sync_private_key_backup_failed]
Could not save account key backup
Tidak dapat menyimpan cadangan kunci akun
---
[sync_private_key_backup_cancelled]
Account key backup cancelled
Cadangan kunci akun dibatalkan
---
[sync_delete_account_button]
Delete Account
Hapus akun
---
[sync_delete_account_title]
Delete Account?
Hapus akun?
---
[sync_delete_account_message]
Delete this account from the remote server and this device? This cannot be undone.
Hapus akun ini dari server remote dan perangkat ini? Tindakan ini tidak dapat dibatalkan.
---
[sync_account_deleted]
Account deleted
Akun dihapus
---
[sync_account_delete_cancelled]
Account deletion cancelled
Penghapusan akun dibatalkan
---
[habit_new_default_name]
Kebiasaan baru
---
[habit_new_title]
Kebiasaan baru
---
[habit_edit_title]
Edit kebiasaan
---
[habit_name_label]
Nama
---
[habit_underline_label]
Garis bawah
---
[habit_practice_list_title]
Daftar latihan
---
[habit_practice_list_info]
Hubungkan kebiasaan ini ke sesi latihan. Hari dengan sesi yang cocok akan tampil selesai dan dapat membuka editor sesi.
---
[habit_counting_title]
Penghitungan
---
[habit_counting_info]
Beberapa hitungan memungkinkan satu hari menyimpan lebih dari satu hitungan. Matikan untuk pelacakan sederhana selesai atau belum.
---
[habit_multiple_counts_label]
Beberapa hitungan
---
[habit_delete_title]
Hapus kebiasaan?
---
[habit_delete_message]
Hapus kebiasaan ini? Tindakan ini tidak dapat dibatalkan.
---
[habit_delete_button]
Hapus kebiasaan
---
[habit_add_new_option]
Tambah kebiasaan baru
---
[habit_load_more_button]
Muat lagi
---
[habit_empty_title]
Belum ada kebiasaan
---
[habit_create_button]
Buat kebiasaan
---
[habit_stats_no_rounds_week]
Tidak ada ronde minggu lalu
---
[habit_stats_current_streak]
Rangkaian saat ini
---
[habit_stats_last_30_days]
30 hari terakhir
---
[habit_stats_wim_hof_hold_rounds]
Ronde tahan napas Wim Hof
---
[habit_stats_weekday_pattern]
Pola hari
---
[habit_stats_practice_time]
Waktu latihan
---
[habit_stats_best_hold]
Tahan terbaik
---
[habit_stats_total_hold]
Total tahan
---
[habit_stats_best_streak]
Rangkaian terbaik
---
[bottom_nav_customize_button]
Sesuaikan navigasi bawah
---
[bottom_nav_customize_title]
Navigasi bawah
---
[bottom_nav_add_button]
Tambah item
---
[bottom_nav_slot_1]
Item 1
---
[bottom_nav_slot_2]
Item 2
---
[bottom_nav_slot_3]
Item 3
---
[bottom_nav_slot_4]
Item 4
---
[bottom_nav_slot_5]
Item 5
---
[bottom_nav_slot_6]
Item 6
---
[bottom_nav_slot_7]
Item 7
---
[bottom_nav_slot_8]
Item 8
---
[reset_button]
Reset
---
[practice_guide_dropdown]
Pilih praktik Anda di sini.
---
[practice_guide_manual]
Baca tutorial sebelum memulai praktik agar Anda memahami seluruh latihan.
---
[practice_guide_sun]
Gunakan tab matahari saat Anda siap memulai latihan.
---
[practice_guide_config]
Ubah konfigurasi praktik agar sesuai dengan kebutuhan Anda.
---
+1
View File
@@ -6,6 +6,7 @@ fr|Français
id|Bahasa Indonesia
it|Italiano
pt|Português
ru|Русский
ja|日本語
ko|한국어
zh|中文
+230 -63
View File
@@ -20,11 +20,14 @@ Fatto
Segna Come Fatto
---
[tab_manual]
Tutorial
Manuale
---
[tab_settings]
Impostazioni
---
[tab_statistics]
Statistiche
---
[play_button]
AVVIA
---
@@ -41,7 +44,7 @@ Meditazione
Meditazione
---
[meditation_manual_intro_text]
Settle into a quiet seat and let this session be simple: arrive, breathe, and begin.
Una pratica di meditazione semplice per respiro, calma e presenza.
---
[meditation_manual_text]
Scegli la musica se vuoi. Un gong segna l inizio e la fine.
@@ -68,7 +71,7 @@ Scarica audio
Riscarica audio
---
[meditation_music_test_button]
Test audio
Prova musica
---
[meditation_music_stop_test_button]
Ferma test
@@ -101,7 +104,7 @@ RESPIRO
RISULTATI
---
[home_button]
HOME
Home
---
[exit_session_title]
Esci dalla Sessione?
@@ -149,13 +152,13 @@ migliore %ds
media %ds
---
[round_result_label]
Round %d %ds
Round
---
[starting_in]
INIZIA IN %2d
---
[session_round_label]
ROUND %d
Round
---
[settings_title]
Impostazioni
@@ -205,6 +208,42 @@ Modalità tema
[theme_system]
Sistema
---
[theme_sky]
Cielo
---
[theme_ocean]
Oceano
---
[theme_forest]
Foresta
---
[theme_sunset]
Tramonto
---
[theme_lavender]
Lavanda
---
[theme_cherry]
Ciliegia
---
[theme_dawn]
Alba
---
[theme_sage]
Salvia
---
[theme_sepia]
Seppia
---
[theme_mono]
Mono
---
[theme_mint]
Menta
---
[theme_cobalt]
Cobalto
---
[orientation_label]
Orientamento
---
@@ -233,13 +272,13 @@ Velocità iniziale
Modifica velocità iniziale
---
[breath_animation_label]
Breathing animation
Animazione del respiro
---
[breath_animation_linear]
Linear
Lineare
---
[breath_animation_in_out]
In / Out
Dentro / fuori
---
[progressive_start_speed_editor_title]
Velocità iniziale
@@ -271,6 +310,9 @@ Cerchio
[volume_label]
Volume
---
[show_session_volume_control_label]
Mostra il controllo volume nelle sessioni
---
[reset_to_defaults_label]
Ripristina predefiniti
---
@@ -368,10 +410,10 @@ Eliminazione annullata
Eliminate %lld sessioni
---
[toggle_off]
OFF
SPENTO
---
[toggle_on]
ON
ACCESO
---
[theme_light]
Chiaro
@@ -413,20 +455,20 @@ Non usarla mai mentre guidi,
in piedi o in acqua.
---
[tutorial_step_method]
Simply follow 3 steps:
Segui 3 passaggi:
1. Breathe in and out 30 times.
2. Exhale and hold.
3. When you feel the urge to breathe, breathe in and hold for 15 seconds.
1. Inspira ed espira 30 volte.
2. Espira e trattieni.
3. Quando senti il bisogno di respirare, inspira e trattieni per 15 secondi.
Exhale, then repeat the process.
Espira, poi ripeti il processo.
Use the wrench icon %i to adjust rounds, breaths, speed, and pauses.
Usa l’icona chiave inglese %i per regolare round, respiri, velocità e pause.
---
[tutorial_step_breathe]
Breathe in and out 30 times.
Inspira ed espira 30 volte.
Find a rhythm that feels natural to you: steady and quick, while still breathing fully.
Trova un ritmo naturale: stabile e rapido, continuando a respirare a fondo.
---
[tutorial_step_progressive_speed]
La velocità progressiva rende il primo round più facile da affrontare.
@@ -434,14 +476,14 @@ La velocità progressiva rende il primo round più facile da affrontare.
Quando è attiva, il primo round inizia più lentamente, poi aumenta gradualmente fino alla velocità selezionata.
---
[tutorial_step_exhale_hold]
After 30 breaths, exhale and hold as long as you can.
Dopo 30 respiri, espira e trattieni il più a lungo possibile.
When you feel the urge to breathe, press the BREATH button.
Quando senti il bisogno di respirare, premi il pulsante RESPIRA.
---
[tutorial_step_inhale_hold]
Inhale fully and hold for 15 seconds.
Inspira completamente e trattieni per 15 secondi.
Exhale, and the next round will begin.
Espira e inizierà il round successivo.
---
[tutorial_skip_button]
SALTA
@@ -489,120 +531,245 @@ Elimina
Musica di Elijah_K.
---
[back_button]
Back
Indietro
---
[close_button]
Close
Chiudi
---
[sync_account_title]
Account
Profilo
---
[sync_configure_account_button]
Configure Account
Configura account
---
[sync_create_account_button]
Create Account
Crea account
---
[sync_account_created]
Account created
Account creato
---
[sync_account_create_failed]
Could not create account
Impossibile creare l’account
---
[sync_import_key_button]
Import .key File
Importa file .key
---
[sync_import_key_dialog_title]
Import Account Key
Importa chiave account
---
[sync_private_key_imported]
Account key imported
Chiave account importata
---
[sync_private_key_import_failed]
Could not import account key
Impossibile importare la chiave account
---
[sync_private_key_import_cancelled]
Account key import cancelled
Importazione chiave account annullata
---
[sync_liboqs_unavailable]
liboqs is not built for this target.
liboqs non è compilato per questo target.
---
[sync_public_id_label]
Public ID
ID pubblico
---
[sync_copy_id_button]
Copy ID
Copia ID
---
[sync_public_id_copied]
Public ID copied
ID pubblico copiato
---
[sync_backup_key_button]
Backup Key
Backup chiave
---
[sync_remote_label]
Remote
Remoto
---
[sync_connect_button]
Connect
Connetti
---
[sync_connected_button]
Connected
Connesso
---
[sync_server_url_invalid]
Use https:// or loopback like localhost:8080
Usa https:// o loopback come localhost:8080
---
[sync_server_saved]
Sync server saved
Server di sincronizzazione salvato
---
[sync_connected]
Remote sync complete
Sincronizzazione remota completata
---
[sync_failed]
Remote sync failed
Sincronizzazione remota fallita
---
[sync_unavailable]
Remote sync is not available on this platform
La sincronizzazione remota non è disponibile su questa piattaforma
---
[sync_no_account]
Create an account before connecting
Crea un account prima di connetterti
---
[sync_auth_failed]
Remote rejected this account
Il remoto ha rifiutato questo account
---
[sync_backup_warning]
Save this private key somewhere you control. Anyone with it can claim this account.
Salva questa chiave privata in un luogo che controlli. Chiunque la possieda può rivendicare questo account.
---
[sync_backup_title]
Backup Account Key
Backup chiave account
---
[sync_save_key_file_button]
Save .key File
Salva file .key
---
[sync_save_key_dialog_title]
Save Account Key
Salva chiave account
---
[sync_private_key_backup_saved]
Account key backup saved
Backup chiave account salvato
---
[sync_private_key_backup_failed]
Could not save account key backup
Impossibile salvare il backup della chiave account
---
[sync_private_key_backup_cancelled]
Account key backup cancelled
Backup chiave account annullato
---
[sync_delete_account_button]
Delete Account
Elimina account
---
[sync_delete_account_title]
Delete Account?
Eliminare account?
---
[sync_delete_account_message]
Delete this account from the remote server and this device? This cannot be undone.
Eliminare questo account dal server remoto e da questo dispositivo? L’azione non può essere annullata.
---
[sync_account_deleted]
Account deleted
Account eliminato
---
[sync_account_delete_cancelled]
Account deletion cancelled
Eliminazione account annullata
---
[habit_new_default_name]
Nuova abitudine
---
[habit_new_title]
Nuova abitudine
---
[habit_edit_title]
Modifica abitudine
---
[habit_name_label]
Nome
---
[habit_underline_label]
Sottolineatura
---
[habit_practice_list_title]
Elenco pratiche
---
[habit_practice_list_info]
Collega questa abitudine alle sessioni di pratica. I giorni con sessioni corrispondenti verranno mostrati come completati e potranno aprire l'editor della sessione.
---
[habit_counting_title]
Conteggio
---
[habit_counting_info]
Conteggi multipli permette di salvare più di un conteggio nello stesso giorno. Lascialo spento per un tracciamento semplice fatto o non fatto.
---
[habit_multiple_counts_label]
Conteggi multipli
---
[habit_delete_title]
Eliminare abitudine?
---
[habit_delete_message]
Eliminare questa abitudine? L'azione non può essere annullata.
---
[habit_delete_button]
Elimina abitudine
---
[habit_add_new_option]
Aggiungi nuova abitudine
---
[habit_load_more_button]
Carica altro
---
[habit_empty_title]
Nessuna abitudine creata
---
[habit_create_button]
Crea abitudine
---
[habit_stats_no_rounds_week]
Nessun round nell'ultima settimana
---
[habit_stats_current_streak]
Serie attuale
---
[habit_stats_last_30_days]
Ultimi 30 giorni
---
[habit_stats_wim_hof_hold_rounds]
Round di apnea Wim Hof
---
[habit_stats_weekday_pattern]
Schema settimanale
---
[habit_stats_practice_time]
Tempo di pratica
---
[habit_stats_best_hold]
Migliore apnea
---
[habit_stats_total_hold]
Apnea totale
---
[habit_stats_best_streak]
Migliore serie
---
[bottom_nav_customize_button]
Personalizza navigazione inferiore
---
[bottom_nav_customize_title]
Navigazione inferiore
---
[bottom_nav_add_button]
Aggiungi elemento
---
[bottom_nav_slot_1]
Elemento 1
---
[bottom_nav_slot_2]
Elemento 2
---
[bottom_nav_slot_3]
Elemento 3
---
[bottom_nav_slot_4]
Elemento 4
---
[bottom_nav_slot_5]
Elemento 5
---
[bottom_nav_slot_6]
Elemento 6
---
[bottom_nav_slot_7]
Elemento 7
---
[bottom_nav_slot_8]
Elemento 8
---
[reset_button]
Ripristina
---
[practice_guide_dropdown]
Scegli qui la tua pratica.
---
[practice_guide_manual]
Leggi il tutorial prima di iniziare una pratica per capire l'esercizio completo.
---
[practice_guide_sun]
Usa la scheda con il sole quando sei pronto per iniziare l'esercizio.
---
[practice_guide_config]
Modifica la configurazione della pratica in base alle tue esigenze.
---
+233 -66
View File
@@ -25,6 +25,9 @@
[tab_settings]
設定
---
[tab_statistics]
統計
---
[play_button]
開始
---
@@ -41,7 +44,7 @@
瞑想
---
[meditation_manual_intro_text]
Settle into a quiet seat and let this session be simple: arrive, breathe, and begin.
呼吸、落ち着き、気づきのためのシンプルな瞑想練習です。
---
[meditation_manual_text]
必要なら音楽を選んでください。ゴングが始まりと終わりを知らせます。
@@ -216,13 +219,13 @@ OK
開始速度を変更
---
[breath_animation_label]
Breathing animation
呼吸アニメーション
---
[breath_animation_linear]
Linear
リニア
---
[breath_animation_in_out]
In / Out
吸う / 吐く
---
[progressive_start_speed_editor_title]
開始速度
@@ -254,6 +257,9 @@ In / Out
[volume_label]
音量
---
[show_session_volume_control_label]
セッション中に音量コントロールを表示
---
[reset_to_defaults_label]
デフォルトに戻す
---
@@ -316,7 +322,7 @@ In / Out
無効なエクスポートファイル
---
[import_cancelled]
Import cancelled
インポートをキャンセルしました
---
[import_choice_title]
設定もインポートしますか?
@@ -331,31 +337,31 @@ Import cancelled
データ+設定
---
[export_cancelled]
Export cancelled
エクスポートをキャンセルしました
---
[no_data_to_export]
No data to export
エクスポートするデータがありません
---
[no_data_to_delete]
No data to delete
削除するデータがありません
---
[delete_all_data_title]
Delete all data?
すべてのデータを削除しますか?
---
[delete_all_data_message]
This will permanently delete all saved sessions.
保存済みのすべてのセッションが完全に削除されます。
---
[delete_cancelled]
Delete cancelled
削除をキャンセルしました
---
[deleted_sessions]
Deleted %lld sessions
%lld 件のセッションを削除しました
---
[toggle_off]
OFF
オフ
---
[toggle_on]
ON
オン
---
[theme_light]
ライト
@@ -399,33 +405,33 @@ ON
立っているとき、水中では行わないでください。
---
[tutorial_step_method]
Simply follow 3 steps:
3つの手順に従ってください:
1. Breathe in and out 30 times.
2. Exhale and hold.
3. When you feel the urge to breathe, breathe in and hold for 15 seconds.
1. 30回、吸って吐きます。
2. 息を吐いて止めます。
3. 息を吸いたくなったら、吸って15秒止めます。
Exhale, then repeat the process.
吐いてから、この流れを繰り返します。
Use the wrench icon %i to adjust rounds, breaths, speed, and pauses.
レンチアイコン %i でラウンド、呼吸数、速度、一時停止を調整できます。
---
[tutorial_step_breathe]
Breathe in and out 30 times.
30回、吸って吐きます。
Find a rhythm that feels natural to you: steady and quick, while still breathing fully.
自然に感じるリズムを見つけてください。安定して速く、ただししっかり呼吸します。
---
[tutorial_step_progressive_speed]
段階的速度は、最初のラウンドに入りやすくします。
---
[tutorial_step_exhale_hold]
After 30 breaths, exhale and hold as long as you can.
30回呼吸したら、吐いて、できるだけ長く息を止めます。
When you feel the urge to breathe, press the BREATH button.
息を吸いたくなったら、呼吸ボタンを押します。
---
[tutorial_step_inhale_hold]
Inhale fully and hold for 15 seconds.
しっかり吸って15秒止めます。
Exhale, and the next round will begin.
吐くと次のラウンドが始まります。
---
[tutorial_skip_button]
スキップ
@@ -475,6 +481,42 @@ Inner Breeze データ書き出し
[theme_system]
システム
---
[theme_sky]
空
---
[theme_ocean]
海
---
[theme_forest]
森
---
[theme_sunset]
夕焼け
---
[theme_lavender]
ラベンダー
---
[theme_cherry]
チェリー
---
[theme_dawn]
夜明け
---
[theme_sage]
セージ
---
[theme_sepia]
セピア
---
[theme_mono]
モノ
---
[theme_mint]
ミント
---
[theme_cobalt]
コバルト
---
[orientation_label]
向き
---
@@ -491,120 +533,245 @@ Inner Breeze データ書き出し
センサー
---
[back_button]
Back
戻る
---
[close_button]
Close
閉じる
---
[sync_account_title]
Account
アカウント
---
[sync_configure_account_button]
Configure Account
アカウントを設定
---
[sync_create_account_button]
Create Account
アカウントを作成
---
[sync_account_created]
Account created
アカウントを作成しました
---
[sync_account_create_failed]
Could not create account
アカウントを作成できませんでした
---
[sync_import_key_button]
Import .key File
.keyファイルをインポート
---
[sync_import_key_dialog_title]
Import Account Key
アカウントキーをインポート
---
[sync_private_key_imported]
Account key imported
アカウントキーをインポートしました
---
[sync_private_key_import_failed]
Could not import account key
アカウントキーをインポートできませんでした
---
[sync_private_key_import_cancelled]
Account key import cancelled
アカウントキーのインポートをキャンセルしました
---
[sync_liboqs_unavailable]
liboqs is not built for this target.
liboqs はこの対象向けにビルドされていません。
---
[sync_public_id_label]
Public ID
公開ID
---
[sync_copy_id_button]
Copy ID
IDをコピー
---
[sync_public_id_copied]
Public ID copied
公開IDをコピーしました
---
[sync_backup_key_button]
Backup Key
キーをバックアップ
---
[sync_remote_label]
Remote
リモート
---
[sync_connect_button]
Connect
接続
---
[sync_connected_button]
Connected
接続済み
---
[sync_server_url_invalid]
Use https:// or loopback like localhost:8080
https:// または localhost:8080 のようなループバックを使用してください
---
[sync_server_saved]
Sync server saved
同期サーバーを保存しました
---
[sync_connected]
Remote sync complete
リモート同期が完了しました
---
[sync_failed]
Remote sync failed
リモート同期に失敗しました
---
[sync_unavailable]
Remote sync is not available on this platform
このプラットフォームではリモート同期を利用できません
---
[sync_no_account]
Create an account before connecting
接続する前にアカウントを作成してください
---
[sync_auth_failed]
Remote rejected this account
リモートがこのアカウントを拒否しました
---
[sync_backup_warning]
Save this private key somewhere you control. Anyone with it can claim this account.
この秘密キーは自分で管理できる場所に保存してください。これを持つ人は誰でもこのアカウントを取得できます。
---
[sync_backup_title]
Backup Account Key
アカウントキーをバックアップ
---
[sync_save_key_file_button]
Save .key File
.keyファイルを保存
---
[sync_save_key_dialog_title]
Save Account Key
アカウントキーを保存
---
[sync_private_key_backup_saved]
Account key backup saved
アカウントキーのバックアップを保存しました
---
[sync_private_key_backup_failed]
Could not save account key backup
アカウントキーのバックアップを保存できませんでした
---
[sync_private_key_backup_cancelled]
Account key backup cancelled
アカウントキーのバックアップをキャンセルしました
---
[sync_delete_account_button]
Delete Account
アカウントを削除
---
[sync_delete_account_title]
Delete Account?
アカウントを削除しますか?
---
[sync_delete_account_message]
Delete this account from the remote server and this device? This cannot be undone.
このアカウントをリモートサーバーとこのデバイスから削除しますか?この操作は元に戻せません。
---
[sync_account_deleted]
Account deleted
アカウントを削除しました
---
[sync_account_delete_cancelled]
Account deletion cancelled
アカウント削除をキャンセルしました
---
[habit_new_default_name]
新しい習慣
---
[habit_new_title]
新しい習慣
---
[habit_edit_title]
習慣を編集
---
[habit_name_label]
名前
---
[habit_underline_label]
下線
---
[habit_practice_list_title]
練習リスト
---
[habit_practice_list_info]
この習慣を練習セッションに関連付けます。一致するセッションがある日は完了として表示され、セッション編集画面を開けます。
---
[habit_counting_title]
カウント
---
[habit_counting_info]
複数カウントを使うと、1日に複数回分を記録できます。単純に完了か未完了だけを追跡する場合はオフのままにしてください。
---
[habit_multiple_counts_label]
複数カウント
---
[habit_delete_title]
習慣を削除しますか?
---
[habit_delete_message]
この習慣を削除しますか?この操作は元に戻せません。
---
[habit_delete_button]
習慣を削除
---
[habit_add_new_option]
新しい習慣を追加
---
[habit_load_more_button]
さらに読み込む
---
[habit_empty_title]
習慣がありません
---
[habit_create_button]
習慣を作成
---
[habit_stats_no_rounds_week]
過去1週間にラウンドはありません
---
[habit_stats_current_streak]
現在の連続記録
---
[habit_stats_last_30_days]
過去30日
---
[habit_stats_wim_hof_hold_rounds]
ヴィム・ホフ息止めラウンド
---
[habit_stats_weekday_pattern]
曜日の傾向
---
[habit_stats_practice_time]
練習時間
---
[habit_stats_best_hold]
最長息止め
---
[habit_stats_total_hold]
合計息止め
---
[habit_stats_best_streak]
最長連続記録
---
[bottom_nav_customize_button]
下部ナビゲーションをカスタマイズ
---
[bottom_nav_customize_title]
下部ナビゲーション
---
[bottom_nav_add_button]
項目を追加
---
[bottom_nav_slot_1]
項目1
---
[bottom_nav_slot_2]
項目2
---
[bottom_nav_slot_3]
項目3
---
[bottom_nav_slot_4]
項目4
---
[bottom_nav_slot_5]
項目5
---
[bottom_nav_slot_6]
項目6
---
[bottom_nav_slot_7]
項目7
---
[bottom_nav_slot_8]
項目8
---
[reset_button]
リセット
---
[practice_guide_dropdown]
ここで練習を選びます。
---
[practice_guide_manual]
練習を始める前にチュートリアルを読んで、エクササイズ全体を理解してください。
---
[practice_guide_sun]
エクササイズを始める準備ができたら、太陽タブを使います。
---
[practice_guide_config]
自分に合うように練習の設定を変更できます。
---
+223 -56
View File
@@ -25,6 +25,9 @@ Inner Breeze
[tab_settings]
설정
---
[tab_statistics]
통계
---
[play_button]
시작
---
@@ -41,7 +44,7 @@ Inner Breeze
명상
---
[meditation_manual_intro_text]
Settle into a quiet seat and let this session be simple: arrive, breathe, and begin.
호흡, 안정, 알아차림을 위한 간단한 명상 연습입니다.
---
[meditation_manual_text]
원하면 음악을 선택하세요. 징 소리가 시작과 끝을 알립니다.
@@ -205,6 +208,42 @@ Settle into a quiet seat and let this session be simple: arrive, breathe, and be
[theme_system]
시스템
---
[theme_sky]
하늘
---
[theme_ocean]
바다
---
[theme_forest]
숲
---
[theme_sunset]
일몰
---
[theme_lavender]
라벤더
---
[theme_cherry]
체리
---
[theme_dawn]
새벽
---
[theme_sage]
세이지
---
[theme_sepia]
세피아
---
[theme_mono]
모노
---
[theme_mint]
민트
---
[theme_cobalt]
코발트
---
[orientation_label]
화면 방향
---
@@ -233,13 +272,13 @@ Settle into a quiet seat and let this session be simple: arrive, breathe, and be
시작 속도 수정
---
[breath_animation_label]
Breathing animation
호흡 애니메이션
---
[breath_animation_linear]
Linear
선형
---
[breath_animation_in_out]
In / Out
들이마심 / 내쉼
---
[progressive_start_speed_editor_title]
시작 속도
@@ -271,6 +310,9 @@ In / Out
[volume_label]
음량
---
[show_session_volume_control_label]
세션에서 볼륨 조절 표시
---
[reset_to_defaults_label]
기본값으로 재설정
---
@@ -412,20 +454,20 @@ In / Out
운전 중, 서 있거나 물속에서는 사용하지 마세요.
---
[tutorial_step_method]
Simply follow 3 steps:
3단계를 따라 하세요:
1. Breathe in and out 30 times.
2. Exhale and hold.
3. When you feel the urge to breathe, breathe in and hold for 15 seconds.
1. 30번 들이마시고 내쉽니다.
2. 내쉬고 멈춥니다.
3. 숨을 쉬고 싶어지면 들이마시고 15초 동안 멈춥니다.
Exhale, then repeat the process.
내쉰 뒤 과정을 반복합니다.
Use the wrench icon %i to adjust rounds, breaths, speed, and pauses.
렌치 아이콘 %i 로 라운드, 호흡 수, 속도, 일시정지를 조정할 수 있습니다.
---
[tutorial_step_breathe]
Breathe in and out 30 times.
30번 들이마시고 내쉽니다.
Find a rhythm that feels natural to you: steady and quick, while still breathing fully.
자연스럽게 느껴지는 리듬을 찾으세요. 안정적이고 빠르되, 충분히 호흡하세요.
---
[tutorial_step_progressive_speed]
점진적 속도는 첫 라운드를 쉽게 시작할 수 있게 해줍니다.
@@ -433,14 +475,14 @@ Find a rhythm that feels natural to you: steady and quick, while still breathing
켜면 첫 라운드가 느리게 시작된 후 점차 선택한 속도까지 증가합니다.
---
[tutorial_step_exhale_hold]
After 30 breaths, exhale and hold as long as you can.
30번 호흡한 뒤 내쉬고 가능한 한 오래 멈춥니다.
When you feel the urge to breathe, press the BREATH button.
숨을 쉬고 싶어지면 호흡 버튼을 누르세요.
---
[tutorial_step_inhale_hold]
Inhale fully and hold for 15 seconds.
깊게 들이마시고 15초 동안 멈춥니다.
Exhale, and the next round will begin.
내쉬면 다음 라운드가 시작됩니다.
---
[tutorial_skip_button]
건너뛰기
@@ -488,120 +530,245 @@ Inner Breeze 데이터 내보내기
음악: Elijah_K.
---
[back_button]
Back
뒤로
---
[close_button]
Close
닫기
---
[sync_account_title]
Account
계정
---
[sync_configure_account_button]
Configure Account
계정 설정
---
[sync_create_account_button]
Create Account
계정 만들기
---
[sync_account_created]
Account created
계정 생성됨
---
[sync_account_create_failed]
Could not create account
계정을 만들 수 없음
---
[sync_import_key_button]
Import .key File
.key 파일 가져오기
---
[sync_import_key_dialog_title]
Import Account Key
계정 키 가져오기
---
[sync_private_key_imported]
Account key imported
계정 키를 가져왔습니다
---
[sync_private_key_import_failed]
Could not import account key
계정 키를 가져올 수 없음
---
[sync_private_key_import_cancelled]
Account key import cancelled
계정 키 가져오기가 취소됨
---
[sync_liboqs_unavailable]
liboqs is not built for this target.
liboqs가 이 대상용으로 빌드되지 않았습니다.
---
[sync_public_id_label]
Public ID
공개 ID
---
[sync_copy_id_button]
Copy ID
ID 복사
---
[sync_public_id_copied]
Public ID copied
공개 ID 복사됨
---
[sync_backup_key_button]
Backup Key
키 백업
---
[sync_remote_label]
Remote
원격
---
[sync_connect_button]
Connect
연결
---
[sync_connected_button]
Connected
연결됨
---
[sync_server_url_invalid]
Use https:// or loopback like localhost:8080
https:// 또는 localhost:8080 같은 루프백을 사용하세요
---
[sync_server_saved]
Sync server saved
동기화 서버 저장됨
---
[sync_connected]
Remote sync complete
원격 동기화 완료
---
[sync_failed]
Remote sync failed
원격 동기화 실패
---
[sync_unavailable]
Remote sync is not available on this platform
이 플랫폼에서는 원격 동기화를 사용할 수 없습니다
---
[sync_no_account]
Create an account before connecting
연결하기 전에 계정을 만드세요
---
[sync_auth_failed]
Remote rejected this account
원격에서 이 계정을 거부했습니다
---
[sync_backup_warning]
Save this private key somewhere you control. Anyone with it can claim this account.
이 개인 키를 직접 관리하는 곳에 저장하세요. 이 키를 가진 사람은 누구나 이 계정을 가져갈 수 있습니다.
---
[sync_backup_title]
Backup Account Key
계정 키 백업
---
[sync_save_key_file_button]
Save .key File
.key 파일 저장
---
[sync_save_key_dialog_title]
Save Account Key
계정 키 저장
---
[sync_private_key_backup_saved]
Account key backup saved
계정 키 백업 저장됨
---
[sync_private_key_backup_failed]
Could not save account key backup
계정 키 백업을 저장할 수 없음
---
[sync_private_key_backup_cancelled]
Account key backup cancelled
계정 키 백업 취소됨
---
[sync_delete_account_button]
Delete Account
계정 삭제
---
[sync_delete_account_title]
Delete Account?
계정을 삭제할까요?
---
[sync_delete_account_message]
Delete this account from the remote server and this device? This cannot be undone.
원격 서버와 이 기기에서 이 계정을 삭제할까요? 이 작업은 되돌릴 수 없습니다.
---
[sync_account_deleted]
Account deleted
계정 삭제됨
---
[sync_account_delete_cancelled]
Account deletion cancelled
계정 삭제 취소됨
---
[habit_new_default_name]
새 습관
---
[habit_new_title]
새 습관
---
[habit_edit_title]
습관 편집
---
[habit_name_label]
이름
---
[habit_underline_label]
밑줄
---
[habit_practice_list_title]
연습 목록
---
[habit_practice_list_info]
이 습관을 연습 세션에 연결합니다. 일치하는 세션이 있는 날은 완료로 표시되며 세션 편집기를 열 수 있습니다.
---
[habit_counting_title]
횟수
---
[habit_counting_info]
여러 횟수를 켜면 하루에 둘 이상의 횟수를 저장할 수 있습니다. 단순히 완료 여부만 추적하려면 꺼 두세요.
---
[habit_multiple_counts_label]
여러 횟수
---
[habit_delete_title]
습관을 삭제할까요?
---
[habit_delete_message]
이 습관을 삭제할까요? 이 작업은 되돌릴 수 없습니다.
---
[habit_delete_button]
습관 삭제
---
[habit_add_new_option]
새 습관 추가
---
[habit_load_more_button]
더 불러오기
---
[habit_empty_title]
생성된 습관 없음
---
[habit_create_button]
습관 만들기
---
[habit_stats_no_rounds_week]
지난주 라운드 없음
---
[habit_stats_current_streak]
현재 연속 기록
---
[habit_stats_last_30_days]
지난 30일
---
[habit_stats_wim_hof_hold_rounds]
윔 호프 숨 참기 라운드
---
[habit_stats_weekday_pattern]
요일 패턴
---
[habit_stats_practice_time]
연습 시간
---
[habit_stats_best_hold]
최고 숨 참기
---
[habit_stats_total_hold]
총 숨 참기
---
[habit_stats_best_streak]
최고 연속 기록
---
[bottom_nav_customize_button]
하단 내비게이션 사용자화
---
[bottom_nav_customize_title]
하단 내비게이션
---
[bottom_nav_add_button]
항목 추가
---
[bottom_nav_slot_1]
항목 1
---
[bottom_nav_slot_2]
항목 2
---
[bottom_nav_slot_3]
항목 3
---
[bottom_nav_slot_4]
항목 4
---
[bottom_nav_slot_5]
항목 5
---
[bottom_nav_slot_6]
항목 6
---
[bottom_nav_slot_7]
항목 7
---
[bottom_nav_slot_8]
항목 8
---
[reset_button]
초기화
---
[practice_guide_dropdown]
여기에서 연습을 선택하세요.
---
[practice_guide_manual]
연습을 시작하기 전에 튜토리얼을 읽고 전체 운동을 이해하세요.
---
[practice_guide_sun]
운동을 시작할 준비가 되면 태양 탭을 사용하세요.
---
[practice_guide_config]
필요에 맞게 연습 설정을 변경하세요.
---
+239 -72
View File
@@ -20,11 +20,14 @@ Feito
Marcar
---
[tab_manual]
Tutorial
Manual
---
[tab_settings]
Configurações
---
[tab_statistics]
Estatísticas
---
[play_button]
INICIAR
---
@@ -41,7 +44,7 @@ Meditação
Meditação
---
[meditation_manual_intro_text]
Settle into a quiet seat and let this session be simple: arrive, breathe, and begin.
Uma prática de meditação simples para respirar, acalmar e estar presente.
---
[meditation_manual_text]
Escolha musica se quiser. Um gongo marca o inicio e o fim.
@@ -80,19 +83,19 @@ Rede indisponível
Não foi possível acessar o servidor de áudio de meditação. Verifique as permissões de rede do Android e sua conexão com a internet, depois tente novamente.
---
[duration_5m]
5m
5 min
---
[duration_15m]
15m
15 min
---
[duration_30m]
30m
30 min
---
[duration_1h]
1h
1 h
---
[duration_2h]
2h
2 h
---
[breath_button]
RESPIRAR
@@ -216,13 +219,13 @@ Velocidade inicial
Modificar velocidade inicial
---
[breath_animation_label]
Breathing animation
Animação da respiração
---
[breath_animation_linear]
Linear
Constante
---
[breath_animation_in_out]
In / Out
Entrada / saída
---
[progressive_start_speed_editor_title]
Velocidade inicial
@@ -254,6 +257,9 @@ Circulo
[volume_label]
Volume
---
[show_session_volume_control_label]
Mostrar controle de volume nas sessões
---
[reset_to_defaults_label]
Restaurar padrões
---
@@ -331,31 +337,31 @@ Dados
Dados+Config.
---
[export_cancelled]
Export cancelled
Exportação cancelada
---
[no_data_to_export]
No data to export
Não há dados para exportar
---
[no_data_to_delete]
No data to delete
Não há dados para excluir
---
[delete_all_data_title]
Delete all data?
Excluir todos os dados?
---
[delete_all_data_message]
This will permanently delete all saved sessions.
Isso excluirá permanentemente todas as sessões salvas.
---
[delete_cancelled]
Delete cancelled
Exclusão cancelada
---
[deleted_sessions]
Deleted %lld sessions
%lld sessões excluídas
---
[toggle_off]
OFF
DESLIGADO
---
[toggle_on]
ON
LIGADO
---
[theme_light]
Claro
@@ -397,20 +403,20 @@ Nunca use enquanto dirige,
em pé ou na água.
---
[tutorial_step_method]
Simply follow 3 steps:
Siga 3 passos:
1. Breathe in and out 30 times.
2. Exhale and hold.
3. When you feel the urge to breathe, breathe in and hold for 15 seconds.
1. Inspire e expire 30 vezes.
2. Expire e segure.
3. Quando sentir vontade de respirar, inspire e segure por 15 segundos.
Exhale, then repeat the process.
Expire e repita o processo.
Use the wrench icon %i to adjust rounds, breaths, speed, and pauses.
Use o ícone de chave %i para ajustar rodadas, respirações, velocidade e pausas.
---
[tutorial_step_breathe]
Breathe in and out 30 times.
Inspire e expire 30 vezes.
Find a rhythm that feels natural to you: steady and quick, while still breathing fully.
Encontre um ritmo natural: constante e rápido, mas ainda respirando profundamente.
---
[tutorial_step_progressive_speed]
A velocidade progressiva torna a primeira rodada mais fácil de começar.
@@ -418,17 +424,17 @@ A velocidade progressiva torna a primeira rodada mais fácil de começar.
Quando ativada, a primeira rodada começa na velocidade 1 nas primeiras 5 respirações e depois aumenta gradualmente até a velocidade escolhida.
---
[tutorial_step_exhale_hold]
After 30 breaths, exhale and hold as long as you can.
Depois de 30 respirações, expire e segure o máximo que puder.
When you feel the urge to breathe, press the BREATH button.
Quando sentir vontade de respirar, pressione o botão RESPIRAR.
---
[tutorial_step_inhale_hold]
Inhale fully and hold for 15 seconds.
Inspire completamente e segure por 15 segundos.
Exhale, and the next round will begin.
Expire e a próxima rodada começará.
---
[tutorial_skip_button]
SKIP
PULAR
---
[tutorial_back_button]
VOLTAR
@@ -475,6 +481,42 @@ Música por Elijah_K.
[theme_system]
Sistema
---
[theme_sky]
Céu
---
[theme_ocean]
Oceano
---
[theme_forest]
Floresta
---
[theme_sunset]
Pôr do sol
---
[theme_lavender]
Lavanda
---
[theme_cherry]
Cereja
---
[theme_dawn]
Amanhecer
---
[theme_sage]
Sálvia
---
[theme_sepia]
Sépia
---
[theme_mono]
Mono
---
[theme_mint]
Menta
---
[theme_cobalt]
Cobalto
---
[orientation_label]
Orientação
---
@@ -491,120 +533,245 @@ Paisagem
Sensor
---
[back_button]
Back
Voltar
---
[close_button]
Close
Fechar
---
[sync_account_title]
Account
Conta
---
[sync_configure_account_button]
Configure Account
Configurar conta
---
[sync_create_account_button]
Create Account
Criar conta
---
[sync_account_created]
Account created
Conta criada
---
[sync_account_create_failed]
Could not create account
Não foi possível criar a conta
---
[sync_import_key_button]
Import .key File
Importar arquivo .key
---
[sync_import_key_dialog_title]
Import Account Key
Importar chave da conta
---
[sync_private_key_imported]
Account key imported
Chave da conta importada
---
[sync_private_key_import_failed]
Could not import account key
Não foi possível importar a chave da conta
---
[sync_private_key_import_cancelled]
Account key import cancelled
Importação da chave cancelada
---
[sync_liboqs_unavailable]
liboqs is not built for this target.
liboqs não foi compilado para este alvo.
---
[sync_public_id_label]
Public ID
ID público
---
[sync_copy_id_button]
Copy ID
Copiar ID
---
[sync_public_id_copied]
Public ID copied
ID público copiado
---
[sync_backup_key_button]
Backup Key
Fazer backup da chave
---
[sync_remote_label]
Remote
Remoto
---
[sync_connect_button]
Connect
Conectar
---
[sync_connected_button]
Connected
Conectado
---
[sync_server_url_invalid]
Use https:// or loopback like localhost:8080
Use https:// ou loopback como localhost:8080
---
[sync_server_saved]
Sync server saved
Servidor de sincronização salvo
---
[sync_connected]
Remote sync complete
Sincronização remota concluída
---
[sync_failed]
Remote sync failed
Falha na sincronização remota
---
[sync_unavailable]
Remote sync is not available on this platform
A sincronização remota não está disponível nesta plataforma
---
[sync_no_account]
Create an account before connecting
Crie uma conta antes de conectar
---
[sync_auth_failed]
Remote rejected this account
O remoto rejeitou esta conta
---
[sync_backup_warning]
Save this private key somewhere you control. Anyone with it can claim this account.
Salve esta chave privada em um local que você controla. Qualquer pessoa com ela pode reivindicar esta conta.
---
[sync_backup_title]
Backup Account Key
Backup da chave da conta
---
[sync_save_key_file_button]
Save .key File
Salvar arquivo .key
---
[sync_save_key_dialog_title]
Save Account Key
Salvar chave da conta
---
[sync_private_key_backup_saved]
Account key backup saved
Backup da chave da conta salvo
---
[sync_private_key_backup_failed]
Could not save account key backup
Não foi possível salvar o backup da chave da conta
---
[sync_private_key_backup_cancelled]
Account key backup cancelled
Backup da chave da conta cancelado
---
[sync_delete_account_button]
Delete Account
Excluir conta
---
[sync_delete_account_title]
Delete Account?
Excluir conta?
---
[sync_delete_account_message]
Delete this account from the remote server and this device? This cannot be undone.
Excluir esta conta do servidor remoto e deste dispositivo? Esta ação não pode ser desfeita.
---
[sync_account_deleted]
Account deleted
Conta excluída
---
[sync_account_delete_cancelled]
Account deletion cancelled
Exclusão da conta cancelada
---
[habit_new_default_name]
Novo hábito
---
[habit_new_title]
Novo hábito
---
[habit_edit_title]
Editar hábito
---
[habit_name_label]
Nome
---
[habit_underline_label]
Sublinhado
---
[habit_practice_list_title]
Lista de práticas
---
[habit_practice_list_info]
Vincule este hábito às sessões de prática. Dias com sessões correspondentes aparecerão como concluídos e poderão abrir o editor de sessão.
---
[habit_counting_title]
Contagem
---
[habit_counting_info]
Contagens múltiplas permitem salvar mais de uma contagem em um dia. Deixe desligado para acompanhar apenas feito ou não feito.
---
[habit_multiple_counts_label]
Contagens múltiplas
---
[habit_delete_title]
Excluir hábito?
---
[habit_delete_message]
Excluir este hábito? Esta ação não pode ser desfeita.
---
[habit_delete_button]
Excluir hábito
---
[habit_add_new_option]
Adicionar novo hábito
---
[habit_load_more_button]
Carregar mais
---
[habit_empty_title]
Nenhum hábito criado
---
[habit_create_button]
Criar hábito
---
[habit_stats_no_rounds_week]
Nenhuma rodada na última semana
---
[habit_stats_current_streak]
Sequência atual
---
[habit_stats_last_30_days]
Últimos 30 dias
---
[habit_stats_wim_hof_hold_rounds]
Rodadas de retenção Wim Hof
---
[habit_stats_weekday_pattern]
Padrão por dia da semana
---
[habit_stats_practice_time]
Tempo de prática
---
[habit_stats_best_hold]
Melhor retenção
---
[habit_stats_total_hold]
Retenção total
---
[habit_stats_best_streak]
Melhor sequência
---
[bottom_nav_customize_button]
Personalizar navegação inferior
---
[bottom_nav_customize_title]
Navegação inferior
---
[bottom_nav_add_button]
Adicionar item
---
[bottom_nav_slot_1]
Item 1
---
[bottom_nav_slot_2]
Item 2
---
[bottom_nav_slot_3]
Item 3
---
[bottom_nav_slot_4]
Item 4
---
[bottom_nav_slot_5]
Item 5
---
[bottom_nav_slot_6]
Item 6
---
[bottom_nav_slot_7]
Item 7
---
[bottom_nav_slot_8]
Item 8
---
[reset_button]
Redefinir
---
[practice_guide_dropdown]
Escolha a sua pratica aqui.
---
[practice_guide_manual]
Leia o tutorial antes de iniciar uma pratica para entender o exercicio completo.
---
[practice_guide_sun]
Use a aba do sol quando estiver pronto para iniciar o exercicio.
---
[practice_guide_config]
Altere a configuracao da pratica de acordo com as suas necessidades.
---
+778
View File
@@ -0,0 +1,778 @@
[app_title]
Inner Breeze
---
[tab_history]
История
---
[tab_habits]
Привычки
---
[tab_practice]
Практика
---
[habit_add_button]
Добавить привычку
---
[habit_done_button]
Готово
---
[habit_not_done_button]
Отметить
---
[tab_manual]
Обучение
---
[tab_settings]
Настройки
---
[tab_statistics]
Статистика
---
[play_button]
СТАРТ
---
[exercise_wim_hof]
Дыхание Вима Хофа
---
[exercise_meditation]
Медитация
---
[meditation_title]
Медитация
---
[meditation_manual_title]
Медитация
---
[meditation_manual_intro_text]
Сядьте спокойно и сделайте эту сессию простой: остановитесь, подышите и начните.
---
[meditation_manual_text]
Включите музыку, если хотите. Гонг отмечает начало и конец.
---
[meditation_music_settings_title]
Музыка для медитации
---
[meditation_music_section_title]
Фоновая музыка
---
[meditation_music_enabled_label]
Воспроизводить фоновую музыку
---
[meditation_music_shuffle_label]
Случайный трек
---
[meditation_music_track_label]
Трек
---
[meditation_music_download_button]
Скачать аудио
---
[meditation_music_redownload_button]
Скачать заново
---
[meditation_music_test_button]
Проверить звук
---
[meditation_music_stop_test_button]
Остановить проверку
---
[meditation_music_network_error_title]
Нет сети
---
[meditation_music_network_error_message]
Не удалось подключиться к серверу аудио для медитации. Проверьте разрешения сети Android и подключение к интернету, затем попробуйте снова.
---
[meditation_music_attribution]
Музыка: Elijah_K.
---
[duration_5m]
5 мин
---
[duration_15m]
15 мин
---
[duration_30m]
30 мин
---
[duration_1h]
1 ч
---
[duration_2h]
2 ч
---
[breath_button]
ДЫШАТЬ
---
[results_title]
ИТОГИ
---
[home_button]
ДОМОЙ
---
[exit_session_title]
Выйти из сессии?
---
[save_completed_rounds_message]
Сохранить завершенные раунды перед выходом?
---
[cancel_button]
Отмена
---
[ok_button]
OK
---
[save_button]
Сохранить
---
[save_results_button]
Сохранить
---
[discard_button]
Сбросить
---
[all_progress_lost_message]
Весь прогресс будет потерян.
---
[meditation_under_minute_exit_message]
Это не будет сохранено.
---
[meditation_save_elapsed_message]
Сохранить эту медитацию перед выходом?
---
[exit_button]
Выйти
---
[round_times_title]
Время раундов
---
[results_rounds]
%d раундов
---
[results_best]
лучшее %dс
---
[results_avg]
среднее %dс
---
[round_result_label]
Раунд %d %dс
---
[starting_in]
НАЧАЛО ЧЕРЕЗ %2d
---
[session_round_label]
РАУНД %d
---
[settings_title]
Настройки
---
[practice_config_title]
Практика
---
[settings_section_breathing]
Дыхание
---
[settings_section_session]
Сессия
---
[settings_tab_app]
Приложение
---
[settings_tab_theme]
Тема
---
[settings_tab_device]
Устройство
---
[settings_section_sound]
Звук
---
[settings_section_appearance]
Внешний вид
---
[settings_section_language]
Язык
---
[settings_tab_data]
Данные
---
[settings_section_data]
Данные
---
[settings_tab_about]
О приложении
---
[theme_label]
Тема
---
[theme_mode_label]
Режим темы
---
[theme_system]
Системная
---
[theme_sky]
Небо
---
[theme_ocean]
Океан
---
[theme_forest]
Лес
---
[theme_sunset]
Закат
---
[theme_lavender]
Лаванда
---
[theme_cherry]
Вишня
---
[theme_dawn]
Рассвет
---
[theme_sage]
Шалфей
---
[theme_sepia]
Сепия
---
[theme_mono]
Моно
---
[theme_mint]
Мята
---
[theme_cobalt]
Кобальт
---
[orientation_label]
Ориентация
---
[orientation_system]
Системная
---
[orientation_portrait]
Портретная
---
[orientation_landscape]
Альбомная
---
[orientation_sensor]
Датчик
---
[speed_label]
Скорость
---
[progressive_speed_label]
Постепенная скорость
---
[progressive_start_speed_label]
Начальная скорость
---
[modify_start_speed_button]
Изменить начальную скорость
---
[breath_animation_label]
Анимация дыхания
---
[breath_animation_linear]
Линейная
---
[breath_animation_in_out]
Вдох / выдох
---
[progressive_start_speed_editor_title]
Начальная скорость
---
[play_in_background_label]
Воспроизводить в фоне
---
[max_rounds_label]
Макс. раундов
---
[max_breaths_label]
Макс. вдохов
---
[pause_after_round_label]
Пауза после раунда
---
[advanced_session_controls_label]
Расширенное управление сессией
---
[hold_display_label]
Отображение задержки
---
[hold_display_stopwatch]
Секундомер
---
[hold_display_circle]
Круг
---
[volume_label]
Громкость
---
[show_session_volume_control_label]
Показывать регулятор громкости в сеансах
---
[reset_to_defaults_label]
Сбросить настройки
---
[fullscreen_label]
Полный экран
---
[language_label]
Язык
---
[language_picker_title]
Выберите язык
---
[next_button]
Далее
---
[coming_soon_label]
Скоро...
---
[total_sessions_label]
Всего сессий: %d
---
[data_size_label]
Размер данных: %s
---
[storage_label]
Хранилище: %s
---
[export_data_button]
Экспорт данных
---
[delete_all_data_button]
Удалить все данные
---
[export_data_dialog_title]
Экспорт данных
---
[export_failed]
Экспорт не удался
---
[exported_label]
Экспортировано
---
[import_data_button]
Импорт данных
---
[import_data_dialog_title]
Импорт данных
---
[import_failed]
Импорт не удался
---
[imported_data]
Данные импортированы
---
[imported_sessions]
Импортировано сессий: %d
---
[import_invalid_file]
Недопустимый файл экспорта
---
[import_cancelled]
Импорт отменен
---
[import_choice_title]
Импортировать настройки?
---
[import_choice_message]
Найдены данные и настройки.
---
[import_data_only_button]
Данные
---
[import_data_settings_button]
Данные+настройки
---
[export_cancelled]
Экспорт отменен
---
[no_data_to_export]
Нет данных для экспорта
---
[no_data_to_delete]
Нет данных для удаления
---
[delete_all_data_title]
Удалить все данные?
---
[delete_all_data_message]
Это навсегда удалит все сохраненные сессии.
---
[delete_cancelled]
Удаление отменено
---
[deleted_sessions]
Удалено сессий: %lld
---
[toggle_off]
ВЫКЛ
---
[toggle_on]
ВКЛ
---
[theme_light]
Светлая
---
[theme_dark]
Темная
---
[on_screen_keyboard_label]
Экранная клавиатура
---
[tutorial_title]
Обучение
---
[tutorial_page_label]
%d/%d
---
[tutorial_method_title]
Метод
---
[tutorial_step1_title]
Шаг 1: вдох и выдох
---
[tutorial_step2_title]
Шаг 2: выдох и задержка
---
[tutorial_step3_title]
Шаг 3: вдох и задержка
---
[tutorial_progressive_speed_title]
Постепенная скорость
---
[tutorial_step_intro]
Эта дыхательная практика основана на методе Вима Хофа.
Она может быть мощной. Выполняйте ее осторожно.
Практикуйте сидя или лежа.
Никогда не выполняйте ее за рулем,
стоя или в воде.
---
[tutorial_step_method]
Просто следуйте 3 шагам:
1. Вдохните и выдохните 30 раз.
2. Выдохните и задержите дыхание.
3. Когда почувствуете желание вдохнуть, вдохните и задержите дыхание на 15 секунд.
Выдохните, затем повторите процесс.
Используйте значок ключа %i, чтобы настроить раунды, вдохи, скорость и паузы.
---
[tutorial_step_breathe]
Вдохните и выдохните 30 раз.
Найдите ритм, который ощущается естественно: ровный и быстрый, но с полным дыханием.
---
[tutorial_step_progressive_speed]
Постепенная скорость помогает легче войти в первый раунд.
Когда она включена, первый раунд начинается медленнее, а затем постепенно ускоряется до выбранной скорости.
---
[tutorial_step_exhale_hold]
После 30 вдохов выдохните и задержите дыхание так долго, как сможете.
Когда почувствуете желание вдохнуть, нажмите кнопку ДЫШАТЬ.
---
[tutorial_step_inhale_hold]
Вдохните полностью и задержите дыхание на 15 секунд.
Выдохните, и начнется следующий раунд.
---
[tutorial_skip_button]
ПРОПУСТИТЬ
---
[tutorial_back_button]
НАЗАД
---
[tutorial_next_button]
ДАЛЕЕ
---
[tutorial_finish_button]
ГОТОВО
---
[tutorial_start_button]
НАЧАТЬ
---
[share_sheet_title]
Экспорт данных сессии
---
[export_metadata_header]
Экспорт данных Inner Breeze
---
[export_metadata_version]
Версия: %s
---
[export_metadata_date]
Дата экспорта: %s
---
[export_metadata_count]
Количество сессий: %d
---
[delete_history_title]
Удалить?
---
[delete_session_message]
Удалить эту сессию? Это нельзя отменить.
---
[delete_round_message]
Удалить этот раунд? Это нельзя отменить.
---
[delete_button]
Удалить
---
[back_button]
Назад
---
[close_button]
Закрыть
---
[sync_account_title]
Аккаунт
---
[sync_configure_account_button]
Настроить аккаунт
---
[sync_create_account_button]
Создать аккаунт
---
[sync_account_created]
Аккаунт создан
---
[sync_account_create_failed]
Не удалось создать аккаунт
---
[sync_import_key_button]
Импорт .key файла
---
[sync_import_key_dialog_title]
Импорт ключа аккаунта
---
[sync_private_key_imported]
Ключ аккаунта импортирован
---
[sync_private_key_import_failed]
Не удалось импортировать ключ аккаунта
---
[sync_private_key_import_cancelled]
Импорт ключа аккаунта отменен
---
[sync_liboqs_unavailable]
liboqs не собран для этой платформы.
---
[sync_public_id_label]
Публичный ID
---
[sync_copy_id_button]
Копировать ID
---
[sync_public_id_copied]
Публичный ID скопирован
---
[sync_backup_key_button]
Резервная копия ключа
---
[sync_remote_label]
Сервер
---
[sync_connect_button]
Подключить
---
[sync_connected_button]
Подключено
---
[sync_server_url_invalid]
Используйте https:// или loopback, например localhost:8080
---
[sync_server_saved]
Сервер синхронизации сохранен
---
[sync_connected]
Удаленная синхронизация завершена
---
[sync_failed]
Удаленная синхронизация не удалась
---
[sync_unavailable]
Удаленная синхронизация недоступна на этой платформе
---
[sync_no_account]
Создайте аккаунт перед подключением
---
[sync_auth_failed]
Сервер отклонил этот аккаунт
---
[sync_backup_warning]
Сохраните этот приватный ключ там, где только вы им управляете. Любой, у кого он есть, сможет получить доступ к аккаунту.
---
[sync_backup_title]
Резервная копия ключа аккаунта
---
[sync_save_key_file_button]
Сохранить .key файл
---
[sync_save_key_dialog_title]
Сохранить ключ аккаунта
---
[sync_private_key_backup_saved]
Резервная копия ключа аккаунта сохранена
---
[sync_private_key_backup_failed]
Не удалось сохранить резервную копию ключа аккаунта
---
[sync_private_key_backup_cancelled]
Сохранение резервной копии ключа аккаунта отменено
---
[sync_delete_account_button]
Удалить аккаунт
---
[sync_delete_account_title]
Удалить аккаунт?
---
[sync_delete_account_message]
Удалить этот аккаунт с удаленного сервера и с этого устройства? Это нельзя отменить.
---
[sync_account_deleted]
Аккаунт удален
---
[sync_account_delete_cancelled]
Удаление аккаунта отменено
---
[habit_new_default_name]
Новая привычка
---
[habit_new_title]
Новая привычка
---
[habit_edit_title]
Изменить привычку
---
[habit_name_label]
Название
---
[habit_underline_label]
Подчеркивание
---
[habit_practice_list_title]
Список практик
---
[habit_practice_list_info]
Свяжите эту привычку с сеансами практики. Дни с подходящими сеансами будут отмечены как выполненные и смогут открыть редактор сеанса.
---
[habit_counting_title]
Подсчет
---
[habit_counting_info]
Несколько счетчиков позволяют сохранить больше одного значения за день. Оставьте выключенным для простого отслеживания выполнено или не выполнено.
---
[habit_multiple_counts_label]
Несколько счетчиков
---
[habit_delete_title]
Удалить привычку?
---
[habit_delete_message]
Удалить эту привычку? Это действие нельзя отменить.
---
[habit_delete_button]
Удалить привычку
---
[habit_add_new_option]
Добавить новую привычку
---
[habit_load_more_button]
Загрузить еще
---
[habit_empty_title]
Привычки не созданы
---
[habit_create_button]
Создать привычку
---
[habit_stats_no_rounds_week]
За последнюю неделю раундов нет
---
[habit_stats_current_streak]
Текущая серия
---
[habit_stats_last_30_days]
Последние 30 дней
---
[habit_stats_wim_hof_hold_rounds]
Раунды задержки дыхания Вима Хофа
---
[habit_stats_weekday_pattern]
Шаблон по дням недели
---
[habit_stats_practice_time]
Время практики
---
[habit_stats_best_hold]
Лучшая задержка
---
[habit_stats_total_hold]
Общая задержка
---
[habit_stats_best_streak]
Лучшая серия
---
[bottom_nav_customize_button]
Настроить нижнюю навигацию
---
[bottom_nav_customize_title]
Нижняя навигация
---
[bottom_nav_add_button]
Добавить пункт
---
[bottom_nav_slot_1]
Пункт 1
---
[bottom_nav_slot_2]
Пункт 2
---
[bottom_nav_slot_3]
Пункт 3
---
[bottom_nav_slot_4]
Пункт 4
---
[bottom_nav_slot_5]
Пункт 5
---
[bottom_nav_slot_6]
Пункт 6
---
[bottom_nav_slot_7]
Пункт 7
---
[bottom_nav_slot_8]
Пункт 8
---
[reset_button]
Сбросить
---
[practice_guide_dropdown]
Выберите практику здесь.
---
[practice_guide_manual]
Прочитайте руководство перед началом практики, чтобы понять упражнение полностью.
---
[practice_guide_sun]
Используйте вкладку с солнцем, когда будете готовы начать упражнение.
---
[practice_guide_config]
Измените настройки практики под свои требования.
---
+231 -64
View File
@@ -25,6 +25,9 @@
[tab_settings]
设置
---
[tab_statistics]
统计
---
[play_button]
开始
---
@@ -41,7 +44,7 @@ Wim Hof 呼吸
冥想
---
[meditation_manual_intro_text]
Settle into a quiet seat and let this session be simple: arrive, breathe, and begin.
一个用于呼吸、平静与觉察的简单冥想练习。
---
[meditation_manual_text]
如果需要,可以选择音乐。锣声会提示开始和结束。
@@ -216,13 +219,13 @@ Settle into a quiet seat and let this session be simple: arrive, breathe, and be
修改起始速度
---
[breath_animation_label]
Breathing animation
呼吸动画
---
[breath_animation_linear]
Linear
线性
---
[breath_animation_in_out]
In / Out
吸气 / 呼气
---
[progressive_start_speed_editor_title]
起始速度
@@ -254,6 +257,9 @@ In / Out
[volume_label]
音量
---
[show_session_volume_control_label]
在会话中显示音量控制
---
[reset_to_defaults_label]
恢复默认
---
@@ -316,7 +322,7 @@ In / Out
无效的导出文件
---
[import_cancelled]
Import cancelled
导入已取消
---
[import_choice_title]
导入设置?
@@ -331,25 +337,25 @@ Import cancelled
数据+设置
---
[export_cancelled]
Export cancelled
导出已取消
---
[no_data_to_export]
No data to export
没有可导出的数据
---
[no_data_to_delete]
No data to delete
没有可删除的数据
---
[delete_all_data_title]
Delete all data?
删除所有数据?
---
[delete_all_data_message]
This will permanently delete all saved sessions.
这将永久删除所有已保存的会话。
---
[delete_cancelled]
Delete cancelled
删除已取消
---
[deleted_sessions]
Deleted %lld sessions
已删除 %lld 个会话
---
[toggle_off]
关
@@ -397,33 +403,33 @@ Deleted %lld sessions
站立或水中时进行。
---
[tutorial_step_method]
Simply follow 3 steps:
只需按照 3 个步骤:
1. Breathe in and out 30 times.
2. Exhale and hold.
3. When you feel the urge to breathe, breathe in and hold for 15 seconds.
1. 吸气和呼气 30 次。
2. 呼气并屏息。
3. 当你想呼吸时,吸气并保持 15 秒。
Exhale, then repeat the process.
呼气,然后重复这个过程。
Use the wrench icon %i to adjust rounds, breaths, speed, and pauses.
使用扳手图标 %i 调整轮次、呼吸次数、速度和暂停。
---
[tutorial_step_breathe]
Breathe in and out 30 times.
吸气和呼气 30 次。
Find a rhythm that feels natural to you: steady and quick, while still breathing fully.
找到自然的节奏:稳定且快速,同时保持充分呼吸。
---
[tutorial_step_progressive_speed]
递进速度会让第一轮更容易进入。
---
[tutorial_step_exhale_hold]
After 30 breaths, exhale and hold as long as you can.
30 次呼吸后,呼气并尽可能长时间屏息。
When you feel the urge to breathe, press the BREATH button.
当你想呼吸时,按下呼吸按钮。
---
[tutorial_step_inhale_hold]
Inhale fully and hold for 15 seconds.
充分吸气并保持 15 秒。
Exhale, and the next round will begin.
呼气后,下一轮将开始。
---
[tutorial_skip_button]
跳过
@@ -473,6 +479,42 @@ Inner Breeze 数据导出
[theme_system]
系统
---
[theme_sky]
天空
---
[theme_ocean]
海洋
---
[theme_forest]
森林
---
[theme_sunset]
日落
---
[theme_lavender]
薰衣草
---
[theme_cherry]
樱桃
---
[theme_dawn]
黎明
---
[theme_sage]
鼠尾草
---
[theme_sepia]
棕褐
---
[theme_mono]
单色
---
[theme_mint]
薄荷
---
[theme_cobalt]
钴蓝
---
[orientation_label]
方向
---
@@ -489,120 +531,245 @@ Inner Breeze 数据导出
传感器
---
[back_button]
Back
返回
---
[close_button]
Close
关闭
---
[sync_account_title]
Account
账户
---
[sync_configure_account_button]
Configure Account
配置账户
---
[sync_create_account_button]
Create Account
创建账户
---
[sync_account_created]
Account created
账户已创建
---
[sync_account_create_failed]
Could not create account
无法创建账户
---
[sync_import_key_button]
Import .key File
导入 .key 文件
---
[sync_import_key_dialog_title]
Import Account Key
导入账户密钥
---
[sync_private_key_imported]
Account key imported
账户密钥已导入
---
[sync_private_key_import_failed]
Could not import account key
无法导入账户密钥
---
[sync_private_key_import_cancelled]
Account key import cancelled
账户密钥导入已取消
---
[sync_liboqs_unavailable]
liboqs is not built for this target.
liboqs 未为此目标构建。
---
[sync_public_id_label]
Public ID
公开 ID
---
[sync_copy_id_button]
Copy ID
复制 ID
---
[sync_public_id_copied]
Public ID copied
公开 ID 已复制
---
[sync_backup_key_button]
Backup Key
备份密钥
---
[sync_remote_label]
Remote
远程
---
[sync_connect_button]
Connect
连接
---
[sync_connected_button]
Connected
已连接
---
[sync_server_url_invalid]
Use https:// or loopback like localhost:8080
请使用 https:// 或 localhost:8080 这样的回环地址
---
[sync_server_saved]
Sync server saved
同步服务器已保存
---
[sync_connected]
Remote sync complete
远程同步完成
---
[sync_failed]
Remote sync failed
远程同步失败
---
[sync_unavailable]
Remote sync is not available on this platform
此平台不支持远程同步
---
[sync_no_account]
Create an account before connecting
连接前请先创建账户
---
[sync_auth_failed]
Remote rejected this account
远程服务器拒绝了此账户
---
[sync_backup_warning]
Save this private key somewhere you control. Anyone with it can claim this account.
请将此私钥保存到你可控制的位置。任何拥有它的人都可以认领此账户。
---
[sync_backup_title]
Backup Account Key
备份账户密钥
---
[sync_save_key_file_button]
Save .key File
保存 .key 文件
---
[sync_save_key_dialog_title]
Save Account Key
保存账户密钥
---
[sync_private_key_backup_saved]
Account key backup saved
账户密钥备份已保存
---
[sync_private_key_backup_failed]
Could not save account key backup
无法保存账户密钥备份
---
[sync_private_key_backup_cancelled]
Account key backup cancelled
账户密钥备份已取消
---
[sync_delete_account_button]
Delete Account
删除账户
---
[sync_delete_account_title]
Delete Account?
删除账户?
---
[sync_delete_account_message]
Delete this account from the remote server and this device? This cannot be undone.
从远程服务器和此设备删除此账户?此操作无法撤销。
---
[sync_account_deleted]
Account deleted
账户已删除
---
[sync_account_delete_cancelled]
Account deletion cancelled
账户删除已取消
---
[habit_new_default_name]
新习惯
---
[habit_new_title]
新习惯
---
[habit_edit_title]
编辑习惯
---
[habit_name_label]
名称
---
[habit_underline_label]
下划线
---
[habit_practice_list_title]
练习列表
---
[habit_practice_list_info]
将此习惯关联到练习会话。有匹配会话的日期会显示为已完成,并可打开会话编辑器。
---
[habit_counting_title]
计数
---
[habit_counting_info]
多次计数允许一天保存多个次数。若只需要简单记录完成或未完成,请保持关闭。
---
[habit_multiple_counts_label]
多次计数
---
[habit_delete_title]
删除习惯?
---
[habit_delete_message]
删除此习惯?此操作无法撤销。
---
[habit_delete_button]
删除习惯
---
[habit_add_new_option]
添加新习惯
---
[habit_load_more_button]
加载更多
---
[habit_empty_title]
尚未创建习惯
---
[habit_create_button]
创建习惯
---
[habit_stats_no_rounds_week]
过去一周没有轮次
---
[habit_stats_current_streak]
当前连续记录
---
[habit_stats_last_30_days]
过去30天
---
[habit_stats_wim_hof_hold_rounds]
Wim Hof 屏息轮次
---
[habit_stats_weekday_pattern]
星期模式
---
[habit_stats_practice_time]
练习时间
---
[habit_stats_best_hold]
最佳屏息
---
[habit_stats_total_hold]
屏息总时长
---
[habit_stats_best_streak]
最佳连续记录
---
[bottom_nav_customize_button]
自定义底部导航
---
[bottom_nav_customize_title]
底部导航
---
[bottom_nav_add_button]
添加项目
---
[bottom_nav_slot_1]
项目 1
---
[bottom_nav_slot_2]
项目 2
---
[bottom_nav_slot_3]
项目 3
---
[bottom_nav_slot_4]
项目 4
---
[bottom_nav_slot_5]
项目 5
---
[bottom_nav_slot_6]
项目 6
---
[bottom_nav_slot_7]
项目 7
---
[bottom_nav_slot_8]
项目 8
---
[reset_button]
重置
---
[practice_guide_dropdown]
在这里选择你的练习。
---
[practice_guide_manual]
开始练习前请先阅读教程,了解完整的练习流程。
---
[practice_guide_sun]
准备开始练习时,请使用太阳标签。
---
[practice_guide_config]
根据你的需要调整练习配置。
---
Binary file not shown.

After

Width:  |  Height:  |  Size: 756 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 453 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 636 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 723 B

+3
View File
@@ -4,6 +4,9 @@
"short_name": "Inbe",
"version": "__APP_VERSION__",
"description": "Breathing, meditation, habit tracking, and encrypted sync.",
"content_security_policy": {
"extension_pages": "script-src 'self' 'wasm-unsafe-eval'; object-src 'self'"
},
"icons": {
"16": "icons/icon-16.png",
"32": "icons/icon-32.png",
+1 -1
View File
@@ -1,4 +1,4 @@
const appUrl = "__WEB_APP_URL__";
const appUrl = chrome.runtime.getURL("index.html");
chrome.action.onClicked.addListener(() => {
chrome.tabs.create({ url: appUrl });
+7
View File
@@ -0,0 +1,7 @@
Package: __CLICK_PACKAGE__
Version: __APP_VERSION__
Architecture: __CLICK_ARCH__
Maintainer: __CLICK_MAINTAINER__
Click-Version: 0.4
Installed-Size: __INSTALLED_SIZE__
Description: __CLICK_TITLE__
+6
View File
@@ -0,0 +1,6 @@
{
"policy_groups": [
"networking"
],
"policy_version": __CLICK_POLICY_VERSION__
}
+8
View File
@@ -0,0 +1,8 @@
[Desktop Entry]
Type=Application
Name=__CLICK_TITLE__
Exec=run-inbe.sh
Icon=inbe
Terminal=false
X-Ubuntu-Touch=true
X-Ubuntu-Supported-Orientations=portrait,landscape
+34
View File
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>__CLICK_PACKAGE__</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0-or-later</project_license>
<name>Inner Breeze</name>
<summary>Syncable breathing, meditation, and habit practice app</summary>
<description>
<p>Inner Breeze is a free, open-source practice app for breathing, meditation, and habit tracking.</p>
<p>It provides guided practice sessions with visual and audio cues, meditation timers, habit counters, session history, import and export, theme customization, and optional sync for habits, sessions, and practice progress.</p>
</description>
<launchable type="desktop-id">inbe.desktop</launchable>
<categories>
<category>Utility</category>
</categories>
<keywords>
<keyword>breathing</keyword>
<keyword>meditation</keyword>
<keyword>habits</keyword>
<keyword>wellbeing</keyword>
</keywords>
<url type="homepage">https://inbe.waozi.xyz/</url>
<url type="bugtracker">https://github.com/waozixyz/inbe/issues</url>
<developer id="xyz.waozi">
<name>waozi</name>
</developer>
<provides>
<binary>inbe</binary>
</provides>
<releases>
<release version="__APP_VERSION__" date="__RELEASE_DATE__"/>
</releases>
<content_rating type="oars-1.1"/>
</component>
+15
View File
@@ -0,0 +1,15 @@
{
"name": "__CLICK_PACKAGE__",
"title": "__CLICK_TITLE__",
"version": "__APP_VERSION__",
"architecture": "__CLICK_ARCH__",
"framework": "__CLICK_FRAMEWORK__",
"description": "Syncable breathing, meditation, and habit practice app.",
"maintainer": "__CLICK_MAINTAINER__",
"hooks": {
"inbe": {
"apparmor": "inbe.apparmor",
"desktop": "inbe.desktop"
}
}
}
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
HERE="${APP_DIR:-$(dirname "$(readlink -f "$0")")}"
export LD_LIBRARY_PATH="$HERE/usr/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
exec "$HERE/usr/bin/inbe" "$@"
Loaded 100 of 149 files, more files were not shown because too many files have changed in this diff. Show more