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

Listview listbox item selected #385

Merged
merged 5 commits into from
Mar 16, 2013
Merged

Conversation

shiftkey
Copy link

Supersedes #380 as:

  • additional commit to delete unused code
  • reverts name changes to border control (not necessary)
  • rebases multiple commits into one (for readability)

TODO:

  • do we want to extract "White" into it's own resource?

@stefan-schweiger
Copy link
Contributor

I renamed the border control to fit the ListBoxItem style, but it's not really necessary.

No matter what will happen to the White color it has also to be changed in some other controls. For example:
https://github.com/MahApps/MahApps.Metro/blob/master/MahApps.Metro/Themes/MetroWindow.xaml#L104
https://github.com/MahApps/MahApps.Metro/blob/master/MahApps.Metro/Styles/Controls.GroupBox.xaml#L30

I think setting a "AccentForegroundColor" for each color would be the best way, because it's easier to customize if you want to add a custom color where white wouldn't fit.

@shiftkey
Copy link
Author

Yes, definitely change it gradually across all the controls.

What about AccentSelectedForegroundColor?


From: stefan-schweiger
Sent: 14/03/2013 12:30
To: MahApps/MahApps.Metro
Cc: Brendan Forster
Subject: Re: [MahApps.Metro] Listview listbox item selected (#385)

I renamed the border control to fit the ListBoxItem style, but it's not really necessary.

No matter what will happen to the White color it has also to be changed in some other controls. For example:
https://github.com/MahApps/MahApps.Metro/blob/master/MahApps.Metro/Themes/MetroWindow.xaml#L104
https://github.com/MahApps/MahApps.Metro/blob/master/MahApps.Metro/Styles/Controls.GroupBox.xaml#L30

I think setting a "AccentForegroundColor" for each color would be the best way, because it's easier to customize if you want to add a custom color where white wouldn't fit.


Reply to this email directly or view it on GitHubhttps://github.com//pull/385#issuecomment-14912980.

@stefan-schweiger
Copy link
Contributor

Accent Selected ForegroundColor doesn't really fit, because it's not always used for selected items (like in the two examples in my previous comment)

@shiftkey
Copy link
Author

Sure, but I'd like the name to be as specific as possible.

I'll look at those cases asap, I'd like to close out this and #386 and ship a new preview today/tomorrow.

@shiftkey
Copy link
Author

I renamed the border control to fit the ListBoxItem style, but it's not really necessary.

I'd rather not introduce sweeping changes at this point (we really need a stable release) but I'll keep that in mind for the future.

@shiftkey
Copy link
Author

Ok, that's enough changes and cleanup for one day. If there's no further objections to the changes I'll push it up tomorrow.

@shiftkey shiftkey merged commit 6789239 into master Mar 16, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants