Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Added
- Added support for custom fonts

### Changed
- Disabled touch outside the checklist dialog to prevent loss of content ([#291])

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import org.fossify.commons.dialogs.SecurityDialog
import org.fossify.commons.extensions.appLaunched
import org.fossify.commons.extensions.appLockManager
import org.fossify.commons.extensions.applyColorFilter
import org.fossify.commons.extensions.applyFontToViewRecursively
import org.fossify.commons.extensions.baseConfig
import org.fossify.commons.extensions.beVisibleIf
import org.fossify.commons.extensions.checkWhatsNew
Expand Down Expand Up @@ -218,6 +219,7 @@ class MainActivity : SimpleActivity() {
setNonPrimaryAlpha(0.4f)
setTextColor(getProperPrimaryColor())
tabIndicatorColor = getProperPrimaryColor()
applyFontToViewRecursively(this)
}
updateTextColors(binding.viewPager)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import androidx.viewbinding.ViewBinding
import org.fossify.commons.extensions.*
import org.fossify.commons.helpers.FontHelper
import org.fossify.commons.views.MyEditText
import org.fossify.notes.R
import org.fossify.notes.activities.MainActivity
Expand Down Expand Up @@ -144,7 +145,7 @@ class TextFragment : NoteFragment() {
private fun setupFragment() {
val config = config ?: return
noteEditText.apply {
typeface = if (config.monospacedFont) Typeface.MONOSPACE else Typeface.DEFAULT
typeface = if (config.monospacedFont) Typeface.MONOSPACE else FontHelper.getTypeface(context)

val fileContents = note!!.getNoteStoredValue(context)
if (fileContents == null) {
Expand Down
Loading