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

Settings UI and internals #46

Merged
merged 10 commits into from
May 16, 2013
Merged

Settings UI and internals #46

merged 10 commits into from
May 16, 2013

Conversation

Therzok
Copy link
Collaborator

@Therzok Therzok commented Mar 18, 2013

Will fix #45.

Modifying settings through a button which makes a dropdown menu. Saving of settings will the done in a .config xml.

Option1: Setting Adorner visibility to Always Visible/Always Hidden/Based on Expanded
Option2: Setting Description in Expander to Visible/Hidden.
Option3: Setting SHA title to short/long SHA

Other will come on the way.

Progress:

  • Default config template
  • Get/Set dynamic setting system
  • UnitTests for said system
  • Make UnitTests also integrate the config file.
  • Graphical interface for settings
  • Usage of settings variables in code
  • Testing phase passed

@ghost ghost assigned Therzok Mar 18, 2013
*Added a test combo box for future interactions.
*Added UnitTests for Settings functions.
TODO: Move it to UnitTests folder.
@Therzok
Copy link
Collaborator Author

Therzok commented Mar 26, 2013

Been a bit busy these days, should do more stuff soon. ;D

Refactored UnitTests for Settings.
UnitTests now get their stub settings xml file.
SettingsView stub.
@Therzok
Copy link
Collaborator Author

Therzok commented Apr 24, 2013

@haacked this is how SeeGit settings thing looks atm. Do you have anything to say about it?

@Therzok
Copy link
Collaborator Author

Therzok commented Apr 24, 2013

I know a change of font could be nice, but dunno what to do if buttons and combos and editboxes look fugly.

@haacked
Copy link
Owner

haacked commented Apr 24, 2013

Looks a little cramped. Perhaps each setting should be on its own "line".

"Commit Description Visibility" should probably be "Show Commit Description".

Also, did you know you can just drag an image into the issue comment to display it inline?

@haacked
Copy link
Owner

haacked commented Apr 24, 2013

Well as long as they are hidden until you click settings, I don't care so
much right now. I can prettify it later.

On Wed, Apr 24, 2013 at 9:52 AM, Ungureanu Marius
[email protected]:

I know a change of font could be nice, but dunno what to do if buttons and
combos and editboxes look fugly.


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

@Therzok
Copy link
Collaborator Author

Therzok commented Apr 24, 2013

That's the whole point of the button. :D But yeah, they're hidden until then.

@Therzok
Copy link
Collaborator Author

Therzok commented Apr 24, 2013

I'll modify those. It was on each on its own line. I'll make it a grid then.

And I didn't know the image thing.

The method is as follows:
**Add property to SettingsDataContext.
**Create a visual handler for the property in SettingsView.xaml.
**Modify App.config xml.
**Add updating of ViewModel property in ToggleSettings handler.
**Modify your affected ViewModel to handle the property.
**Use the property in its specific view.

Currently updates happen on toggling off the settings window.
@Therzok
Copy link
Collaborator Author

Therzok commented May 14, 2013

The PR can now be merged. Appearance and Layout can be done later, and modifications on the system too. Your choice on merging Phil.

@ghost ghost assigned haacked May 14, 2013
haacked added a commit that referenced this pull request May 16, 2013
Settings UI and internals
@haacked haacked merged commit 89881ed into master May 16, 2013
@haacked
Copy link
Owner

haacked commented May 16, 2013

Sorry for the late merge. I forgot about this. You are correct, we can improve the appearance later. :)

@Therzok Therzok deleted the settings branch May 17, 2013 06:13
@Therzok
Copy link
Collaborator Author

Therzok commented May 17, 2013

It looks a bit better with the Font change though. Still feels a bit cramped, but I haven't found a way to add the options window without taking up too much space.

Also, if you have any suggestions on how to improve this system, please tell. ;D

@Therzok
Copy link
Collaborator Author

Therzok commented May 17, 2013

I can implement any suggestions you have. ;D

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.

Settings
2 participants