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

Fix dynamic style binding #840

Merged
merged 6 commits into from
Nov 23, 2023
Merged

Conversation

MakesYT
Copy link
Contributor

@MakesYT MakesYT commented Nov 23, 2023

Fix PlaceholderTextBox FontSize binding
Optimized Release version does not output debug files

Pull request type

Please check the type of change your PR introduces:

  • Update
  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes

What is the current behavior?

Issue Number: N/A

  • Cannot modify PlaceholderTextBox FontSize
  • style binding is not dynamic

What is the new behavior?

  • Fix dynamic style binding

  • Fix PlaceholderTextBox FontSize binding

  • Optimized Release version does not output debug files

Other information

Fix PlaceholderTextBox FontSize binding
Optimized Release version does not output debug files
src/Wpf.Ui.Tray/Wpf.Ui.Tray.csproj Outdated Show resolved Hide resolved
src/Wpf.Ui/Wpf.Ui.csproj Outdated Show resolved Hide resolved
@@ -17,10 +17,10 @@
-->

<Color x:Key="ApplicationBackgroundColor">#FF202020</Color>
<SolidColorBrush x:Key="ApplicationBackgroundBrush" Color="{StaticResource ApplicationBackgroundColor}" />
<SolidColorBrush x:Key="ApplicationBackgroundBrush" Color="{DynamicResource ApplicationBackgroundColor}" />
Copy link
Member

Choose a reason for hiding this comment

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

Do we really need a dynamic resource if the declaration is before it?

Copy link
Member

Choose a reason for hiding this comment

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

And if so, it may be worth rebuilding the theme files to contain only Colors and Brushes in a separate, common one.

@pomianowski
Copy link
Member

Hey @MakesYT, thank you for your PR, please take a look at the comments

MakesYT and others added 4 commits November 23, 2023 21:14
Co-authored-by: pomian <13592821+pomianowski@users.noreply.github.com>
Co-authored-by: pomian <13592821+pomianowski@users.noreply.github.com>
@MakesYT
Copy link
Contributor Author

MakesYT commented Nov 23, 2023

Now only some system-specific colors are dynamic

@pomianowski pomianowski merged commit 8dbb625 into lepoco:development Nov 23, 2023
2 checks passed
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.

None yet

3 participants