Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

silvanicholas
Copy link

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.

Copy link
Owner

@thamara thamara left a 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
Copy link
Owner

Choose a reason for hiding this comment

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

Remove comment.

Comment on lines +32 to +33

// Continue with other preference setups...
Copy link
Owner

Choose a reason for hiding this comment

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

Remove

Comment on lines +35 to +38

// Listen for theme changes in real-time
nativeTheme.on('updated', applySystemTheme);

Copy link
Owner

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 $(() => { ...?

Comment on lines +17 to +18
function renderPreferencesWindow() {
const theme = 'theme';
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants