Skip to content

Commit

Permalink
Applying font overrides on startup. (#613)
Browse files Browse the repository at this point in the history
  • Loading branch information
Unthrottled authored Dec 22, 2022
1 parent d570437 commit 7de7905
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 23 deletions.
4 changes: 4 additions & 0 deletions changelog/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
---

# 88.3-1.8.1 [Global Font Fix]

- Fixed issue with global font override not being applied after IDE was restarted.

# 88.3-1.8.0 [SDK API Updates]

- Removed Frameless mode as it's supported by the platform now.
Expand Down
21 changes: 1 addition & 20 deletions changelog/RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,20 +1 @@
# 88.3-1.8.0 [Doki Theme Icons]

<div align="center">
<img src="https://doki.assets.unthrottled.io/misc/doki_icons_logo.png" width="256" height="256" alt="Doki Theme Icons"></img>
</div>

- Removed the legacy Material Icons. Please install the [Doki Theme Icons](https://github.com/doki-theme/doki-theme-icons-jetbrains) in its place.
- Renamed plugin to `Doki Theme` & updated plugin logo.
- Zero Two's Obsidian theme is now the default for new users.
- Updated Chocola's Xmas theme.
- Made Natsuki's & Tohru's ANSI green color more usable.
- Themed the `Version Control Marker Popup`
- Restored the selected radio button for all light themes.
- Themed the segmented buttons, so various settings UI components look better.
- Added the initial experimental UI (New UI) support.
- Source code is compiled for Java 17.
- Raised lowest supported build to 2022.2 to support Java 17.
- Themed the progress indicator track bar.
- Removed Frameless mode as it's supported by the platform now.
- Migrated away from various internal methods where replacement was available.
- Fixed issue with global font override not being applied after IDE was restarted.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# -> https://www.jetbrains.org/intellij/sdk/docs/reference_guide/intellij_artifacts.html

pluginGroup=io.unthrottled
pluginVersion=88.3-1.8.0
pluginVersion=88.3-1.8.1
pluginSinceBuild=222
pluginUntilBuild = 223.*

Expand Down
9 changes: 7 additions & 2 deletions src/main/kotlin/io/unthrottled/doki/TheDokiTheme.kt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class TheDokiTheme : Disposable {
IconPathReplacementComponent.initialize()
EXPUIBastardizer.bastardizeExperimentalUI()
installAllUIComponents()
applyFonts()

connection.subscribe(
ApplicationActivationListener.TOPIC,
Expand All @@ -82,8 +83,7 @@ class TheDokiTheme : Disposable {
.doOrElse({
setSVGColorPatcher(it)
installAllUIComponents()
applyCustomFontSize()
applyConsoleFont()
applyFonts()
attemptToRefreshUpdateNotification(it)
}) {
IconPathReplacementComponent.removePatchers()
Expand All @@ -93,6 +93,11 @@ class TheDokiTheme : Disposable {
)
}

private fun applyFonts() {
applyCustomFontSize()
applyConsoleFont()
}

fun projectOpened(project: Project) {
EXPUIBastardizer.bastardizeExperimentalUI()
ThemeManager.instance.currentTheme
Expand Down

0 comments on commit 7de7905

Please sign in to comment.