Skip to content
This repository has been archived by the owner on Sep 17, 2023. It is now read-only.

implement settings screen #13

Merged
merged 16 commits into from
Apr 18, 2023
Merged

implement settings screen #13

merged 16 commits into from
Apr 18, 2023

Conversation

aikrq
Copy link
Collaborator

@aikrq aikrq commented Apr 14, 2023

also added prefs object class.

aikrq and others added 14 commits April 14, 2023 23:35
Signed-off-by: TheRemakerMan <farzasz7@gmail.com>

Signed-off-by: TheRemakerMan <farzasz7@gmail.com>
Bumps [org.jetbrains.kotlin.android](https://github.com/JetBrains/kotlin) from 1.8.0 to 1.8.20.
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/v1.8.20/ChangeLog.md)
- [Commits](JetBrains/kotlin@v1.8.0...v1.8.20)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlin.android
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [org.jetbrains.kotlin:kotlin-reflect](https://github.com/JetBrains/kotlin) from 1.8.10 to 1.8.20.
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/v1.8.20/ChangeLog.md)
- [Commits](JetBrains/kotlin@v1.8.10...v1.8.20)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlin:kotlin-reflect
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [com.squareup:kotlinpoet](https://github.com/square/kotlinpoet) from 1.12.0 to 1.13.0.
- [Release notes](https://github.com/square/kotlinpoet/releases)
- [Changelog](https://github.com/square/kotlinpoet/blob/master/docs/changelog.md)
- [Commits](square/kotlinpoet@1.12.0...1.13.0)

---
updated-dependencies:
- dependency-name: com.squareup:kotlinpoet
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [org.jetbrains.kotlinx:kotlinx-coroutines-android](https://github.com/Kotlin/kotlinx.coroutines) from 1.6.1 to 1.6.4.
- [Release notes](https://github.com/Kotlin/kotlinx.coroutines/releases)
- [Changelog](https://github.com/Kotlin/kotlinx.coroutines/blob/master/CHANGES.md)
- [Commits](Kotlin/kotlinx.coroutines@1.6.1...1.6.4)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlinx:kotlinx-coroutines-android
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [org.jetbrains.kotlin:kotlin-scripting-compiler](https://github.com/JetBrains/kotlin) from 1.8.10 to 1.8.20.
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/v1.8.20/ChangeLog.md)
- [Commits](JetBrains/kotlin@v1.8.10...v1.8.20)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlin:kotlin-scripting-compiler
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: TheRemakerMan <farzasz7@gmail.com>
Signed-off-by: TheRemakerMan <farzasz7@gmail.com>
Signed-off-by: TheRemakerMan <farzasz7@gmail.com>
Signed-off-by: TheRemakerMan <farzasz7@gmail.com>
Signed-off-by: TheRemakerMan <farzasz7@gmail.com>
…erences

Signed-off-by: TheRemakerMan <farzasz7@gmail.com>
… summary

Signed-off-by: TheRemakerMan <farzasz7@gmail.com>
@@ -24,6 +24,6 @@ fun CodeEditor.setLanguageTheme(language: EditorLanguage) {
* Sets the font and enables highlighting of the current line for the code editor.
*/
fun CodeEditor.setFont() {
typefaceText = ResourcesCompat.getCachedFont(context, R.font.noto_sans_mono)
typefaceText = ResourcesCompat.getFont(context, R.font.noto_sans_mono)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getCachedFont would be better here i think

Copy link
Collaborator Author

@aikrq aikrq Apr 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the getCachedFont method, the font will not be loaded since it is not cached.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It checks if its cached and sets it. atleast in emulator, it loads properly

Copy link
Collaborator Author

@aikrq aikrq Apr 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you tested on a real device? When using the getCachedFont() method on my device, the font simply didn't load.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it did work

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check last artifact (not pr's artifact)

<resources>
<string-array name="java_version_entries">
<item>8</item>
<item>11</item>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about other version? For ex if you just want to use text blocks and want compatibility with Java 16, you can just use it

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay, i will add every java version from 8 to 17.

@PranavPurwar PranavPurwar merged commit db4764e into Cosmic-Ide:main Apr 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants