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

Update to utilise skinshortcuts (0.5.3) for main menu, background, widgets #18

Merged
merged 6 commits into from Sep 28, 2015
Merged

Update to utilise skinshortcuts (0.5.3) for main menu, background, widgets #18

merged 6 commits into from Sep 28, 2015

Conversation

ghost
Copy link

@ghost ghost commented Sep 21, 2015

I know you've moved on to Arctic, so if you're not interested in this that's no problem at all :)

I was curious just how difficult it would be to move Mimic to fully utilise Skin Shortcuts - as it is, a lot harder than I anticipated and I can understand exactly why you didn't do it! Still, I can never resist a challenge ;)

I've done it as multiple commits to try and make the changes easier to follow, but if you want to merge it (absolutely your choice, I won't be offended if you don't!) I'll happily squash the commits.

A couple of things to note about it:

  • The only testing it's had is from me as I've been making the changes. It's one of those situations where most things should be working, but there may well be bugs.
  • And there's at least one known bug (I'm sure I had a second, but can't remember it now remembered and fixed the second & updated PR) - the description text for the skinshortcuts management dialog is completely wrong :) (You'll see what I mean when you select certain options in the management dialog)
  • It doesn't include any pre-defined menu/submenu items (the x1, x2 etc won't be used), so the menu items default to those included with the script (based off of Confluences defaults). It also doesn't have any default backgrounds/widgets for menu items.
  • The final commit removes custom dialogs I think are unnecessary with the changes made, but I haven't fully checked this out.

Regards.

* Change skin shortcuts build lines to build mainmenu + submenu
* Change main menu includes to use skinshortcuts main menu
* Remove previous main menu includes
* Remove submenu fallbacks
* Change manage main menu button to activate skinshortcuts management
dialog + add edit submenu item to management dialog
* Change management dialog from using GUI buttons 101/102/103/111 to
401 (generally considered a more user-friendly method and visually
cleaner)
* Change layout to match skinsettings
* Remove background/widget/infoline buttons, to be re-implemented
individually
@braz96
Copy link
Owner

braz96 commented Sep 21, 2015

Wow, thanks Bob, was not expecting this! I'm out of the country for the
next week, but I'll test and merge as soon as I get back. Looks like you
already did it, but don't worry about the cleanup. I can remove all traces
of the dialogs/variables/etc that are no longer needed. Thanks again!
On Sep 21, 2015 10:12 AM, "Ignoble61" notifications@github.com wrote:

I know you've moved on to Arctic, so if you're not interested in this
that's no problem at all :)

I was curious just how difficult it would be to move Mimic to fully
utilise Skin Shortcuts - as it is, a lot harder than I anticipated and I
can understand exactly why you didn't do it! Still, I can never resist a
challenge ;)

I've done it as multiple commits to try and make the changes easier to
follow, but if you want to merge it (absolutely your choice, I won't be
offended if you don't!) I'll happily squash the commits.

A couple of things to note about it:

  • The only testing it's had is from me as I've been making the
    changes. It's one of those situations where most things should be working,
    but there may well be bugs.
  • And there's at least one known bug (I'm sure I had a second, but
    can't remember it now) - the description text for the skinshortcuts
    management dialog is completely wrong :) (You'll see what I mean when you
    select certain options in the management dialog)
  • The final commit removes custom dialogs I think are unnecessary
    with the changes made, but I haven't fully checked this out.

Regards.

You can view, comment on, or merge this pull request online at:

#18
Commit Summary

  • Use script.skinshortcuts for main menu
  • Redesign management dialog
  • Add skinshortcuts background support
  • Add skinshortcuts widget support
  • Use skinshortcuts to set custom InfoLine property
  • Delete custom dialogs that SHOULD now be unneccesary

File Changes

Patch Links:


Reply to this email directly or view it on GitHub
#18.

* Define backgrounds in overrides.xml
* For fanart, display dependant on whether the background property
matches, with a fallback on using the background property directly to
support single/multi-image
* For live cases, display dependant on left substring matching, with
the correct items loaded based on right substring matching
* Define those few widgets that aren’t automatically available in
overrides.xml
* Display weather widget dependant on widget=weather
* Display other widgets based on !IsEmpty(widgetPath), and use
widgetTarget + widgetPath to fill the list
* Switch widget labels to vars
* Ugly hack to hide widget background when widgets always visible + no
widget selected
* Use button 404 to set InfoLine property based on properties defined in overrides
* Update infoline variables to base on the new value of the InfoLine properties
braz96 pushed a commit that referenced this pull request Sep 28, 2015
Update to utilise skinshortcuts (0.5.3) for main menu, background, widgets (Thanks Bob!)
@braz96 braz96 merged commit d0dc451 into braz96:master Sep 28, 2015
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

2 participants