-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: changing the theme through short cut menu. #207
base: main
Are you sure you want to change the base?
Conversation
…ODO: looks weird when the initil theme is light
@@ -228,8 +226,16 @@ class SharedChatPane(val project: Project) : JPanel(), Disposable { | |||
val ef = EditorFactory.getInstance() | |||
ef.eventMulticaster.addSelectionListener(selectionListener, this) | |||
|
|||
ApplicationManager.getApplication().messageBus.connect(this).subscribe(LafManagerListener.TOPIC, uiChangeListener) | |||
|
|||
// ApplicationManager.getApplication().messageBus.connect(this).subscribe(UISettingsListener.TOPIC, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete comments
@@ -299,7 +302,7 @@ class ChatWebView(val editor: Editor, val messageHandler: (event: Events.FromCha | |||
fun postMessage(message: Events.ToChat<*>?) { | |||
if (message != null) { | |||
val json = Events.stringify(message) | |||
// println("post message json: $json") | |||
println("post message json: $json") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use logger instead println
UISettingsListener { | ||
ApplicationManager.getApplication().invokeLater { | ||
println("Ui Update") | ||
// this.browser.setStyle() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete comments
@@ -59,6 +59,7 @@ class ChatWebView(val editor: Editor, val messageHandler: (event: Events.FromCha | |||
|
|||
fun setStyle() { | |||
val isDarkMode = LafManager.getInstance().currentUIThemeLookAndFeel.isDark | |||
// println("isDark: $isDarkMode") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete comments
Fixes #204
To recreate the issues change the theme using the short cut menu ^` select
theme
and click on a theme.Ticket: https://refact.fibery.io/Software_Development/UI-chat-js-133#Task/JB-theme-changes-544