Nimaz offers flexible theming options to personalize your prayer experience with support for light, dark, and system-adaptive themes, Material You dynamic colors, and traditional Islamic decorative patterns.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/arshad-shah/Nimaz/llms.txt
Use this file to discover all available pages before exploring further.
Theme modes
The app supports three theme modes that control the overall appearance:- System - Automatically matches your device’s system theme settings
- Light - Fixed light theme with bright backgrounds
- Dark - Fixed dark theme with deep backgrounds optimized for low-light conditions
PreferencesDataStore and defaults to "system":
PreferencesDataStore.kt:127-135
MainActivity which converts the string value to a ThemeMode enum:
MainActivity.kt:57-61
Dynamic colors
Dynamic color requires Android 12 (API level 31) or higher.
PreferencesDataStore.kt:137-145
NimazTheme composable applies dynamic colors when enabled:
Theme.kt:103-110
Islamic patterns
Users can toggle decorative Islamic geometric patterns throughout the app interface. This setting controls the display of traditional arabesque and geometric designs:PreferencesDataStore.kt:147-154
CompositionLocal that UI components can access:
Theme.kt:27
Islamic patterns are enabled by default to provide an authentic Islamic app experience.
User interface
Theme settings are configured in the Appearance Settings screen, which provides:- Visual theme preview cards showing Dark, Light, and System options
- Toggle for dynamic colors (Android 12+)
- Toggle for Islamic pattern display
AppearanceSettingsScreen.kt:78-203 for the complete implementation of the theme selection UI.