-
Notifications
You must be signed in to change notification settings - Fork 276
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
titlebar changes #1080
base: main
Are you sure you want to change the base?
titlebar changes #1080
Conversation
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.
Please also include a gif or video of the change in action.
@@ -2,11 +2,40 @@ | |||
|
|||
import { applyTheme } from '../renderer/themes.js'; | |||
import { translatePage } from '../renderer/i18n-translator.js'; | |||
|
|||
import { nativeTheme } from 'electron'; // Import nativeTheme from Electron |
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.
Remove comment.
|
||
// Continue with other preference setups... |
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.
Remove
|
||
// Listen for theme changes in real-time | ||
nativeTheme.on('updated', applySystemTheme); | ||
|
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.
Shouldn't this be within the end of this file, on $(() => { ...
?
function renderPreferencesWindow() { | ||
const theme = 'theme'; |
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.
There's already a function renderPreferencesWindow()
below. It should be merged.
This pull request addresses the issue where the application's title bar does not adapt to the user's system preferences, such as dark mode or custom title bar colors. The goal is to enhance the user experience by ensuring that the title bar dynamically matches the system UI preferences, creating a consistent look and feel across the application.