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

[VDG] HandCursor ToggleSwitch #8014

Merged
merged 2 commits into from
May 16, 2022

Conversation

MarnixCroes
Copy link
Collaborator

looks better

image

yahiheb
yahiheb previously approved these changes May 15, 2022
Copy link
Collaborator

@yahiheb yahiheb left a comment

Choose a reason for hiding this comment

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

tACK

@soosr
Copy link
Contributor

soosr commented May 16, 2022

cACK.

I think this should be applied software-wide instead of just in the settings. This is a good new task for you to learn.

  1. In the Stlyes folder you should add a new file called ToggleSwitch.axaml.
  2. In the Styles.axaml you have to reference this new file.
    <StyleInclude Source="avares://WalletWasabi.Fluent/Styles/ToggleSwitch.axaml" />
  3. Open the new file add apply the change for every toggle switch:
<Styles xmlns="https://github.com/avaloniaui"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <Style Selector="ToggleSwitch">
    <Setter Property="Cursor" Value="Hand" />
  </Style>
</Styles>

From now a ToggleSwitch will have the Hand cursor everywhere (e.g. SearchBar too).

@MarnixCroes
Copy link
Collaborator Author

@soosr
Done. Thanks!

@soosr soosr merged commit b01eeb6 into WalletWasabi:master May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants