It is currently April 27th, 2024, 4:26 pm

Suggestion: Bordered/Snapped-to Awareness

Report bugs with the Rainmeter application and suggest features.
NewWave
Posts: 23
Joined: April 15th, 2012, 5:39 am

Suggestion: Bordered/Snapped-to Awareness

Post by NewWave »

I've created some skins that change shape when touching the edges of the work area/screen --sort of a docked state.

What I would find useful is the ability to have my skins understand when they are bordered/snapped-to by another skin which is not my own. Most skins are rectangular and I could square-up the shared side.

Perhaps if a given skin could understand that another is touching it, things like inheriting values from one another to share a similar width or height could be done.

What think?
User avatar
thatsIch
Posts: 446
Joined: August 7th, 2012, 9:18 pm

Re: Suggestion: Bordered/Snapped-to Awareness

Post by thatsIch »

NewWave wrote:I've created some skins that change shape when touching the edges of the work area/screen --sort of a docked state.

What I would find useful is the ability to have my skins understand when they are bordered/snapped-to by another skin which is not my own. Most skins are rectangular and I could square-up the shared side.

Perhaps if a given skin could understand that another is touching it, things like inheriting values from one another to share a similar width or height could be done.

What think?
afaik they are already doing it if you have done it right. Most times its just a matter of W and H's being too big so they won't snap

(for example you have a 1000x1000 text area with just hello in it. It will be displayed as a small string but in reality is 1000x1000 and other skins wont snap at it cause the border is out of screen)
User avatar
MerlinTheRed
Rainmeter Sage
Posts: 889
Joined: September 6th, 2011, 6:34 am

Re: Suggestion: Bordered/Snapped-to Awareness

Post by MerlinTheRed »

I don't think that's what he means...
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!
User avatar
thatsIch
Posts: 446
Joined: August 7th, 2012, 9:18 pm

Re: Suggestion: Bordered/Snapped-to Awareness

Post by thatsIch »

then what else?
that you can drag n drop multiple skins at once when they are snapped`?
User avatar
MerlinTheRed
Rainmeter Sage
Posts: 889
Joined: September 6th, 2011, 6:34 am

Re: Suggestion: Bordered/Snapped-to Awareness

Post by MerlinTheRed »

I understand it like he wants a skin to be able to know if another skin is docked to it and where (perhaps via a built-in variable), so you can program the skin to react to other skins being docked to it.
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!
NewWave
Posts: 23
Joined: April 15th, 2012, 5:39 am

Re: Suggestion: Bordered/Snapped-to Awareness

Post by NewWave »

MerlinTheRed wrote:I understand it like he wants a skin to be able to know if another skin is docked to it and where (perhaps via a built-in variable), so you can program the skin to react to other skins being docked to it.
That would be it.
User avatar
thatsIch
Posts: 446
Joined: August 7th, 2012, 9:18 pm

Re: Suggestion: Bordered/Snapped-to Awareness

Post by thatsIch »

so something like adding "child" skins to a "parent" one
kinda like it
User avatar
Kaelri
Developer
Posts: 1721
Joined: July 25th, 2009, 4:47 am

Re: Suggestion: Bordered/Snapped-to Awareness

Post by Kaelri »

There would be some complications with this. Right now, there is no mechanism for one skin to retrieve values from another skin, and there are too many permutations to simply add more built-in variables for every possibility. Some new measure, plugin or Lua functions would probably be needed.

Then there's the issue of interpreting "snapping." If two (or more) skins are overlapped such that they share an edge, another skin could be "snapped" to both of them, so it would be ambigious which skin to "inherit" values from. And there are other details to consider: what if two skins only share a corner? Or the left edge and the top-left corner? Bottom edge and bottom-right corner? And what if one of the skins has "snap to edges" disabled - do we still consider them "bordered" for the purposes of this feature?

I don't think there is an obvious solution at this time. We are certainly open to ideas, though.
johnnyrags
Posts: 6
Joined: September 20th, 2012, 1:10 am

Re: Suggestion: Bordered/Snapped-to Awareness

Post by johnnyrags »

I am obviously not the most knowledgeable about coding solutions, but would a system to involve grouping in skins work for something like this? Example being if you want functionality to have skins "snapped" you could code them into a group that could then utilize certain functions within that group only. that would allow multiple skins that are sharing edges or "snapped" to still function as intended if they are not grouped with all of the skins that are sharing edges.

from a development perspective, I would assume that this would be a rather substantial overhaul or a rather involved module to include to Rainmeter, but down the line, perhaps would add a vast amount of functionality to how skins interact and can be displayed on screen.