Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 871

Help: Rainmeter Skins • Any better solution for snappable skin margins on a dynamic dimension skin?

$
0
0
For some time it has seemed to me the only feasible method of setting snappable margins for inter-skin/screen area for dynamic width/height skins is to include invisible meters that act as such around each skin.

However this has the drawback as illustrated below, where adjacent/flush other skins double-up the margins. This means one has to reduce the meter-based margin dimensions by half to compensate.
Example.png
However that has two downsides of its own:
  • When snapping to outermost edges of screen/monitor area the margin will be half, rather than the desired 'full' margin (ie: there's a discrepancy between the skin margin and the user-expected margin against the screen edges)
  • Any effects one may want to apply within the pseudo-margin area, like shadows, then requires reduction (if necessary) to fit within the adjusted half-size margins.
The first issue I could foresee being mitigated two ways: either try to clamp the skin coords to within a certain boundary of the screen at all times (haven't tested any PoC for how this would interact with user moves via dragging), or have some separate invisible skin that wraps around the screen edges to act as the complementary second-half of the margin.

While the second issue is more one that I can't foresee any mitigation for, since fundamentally afaik Rainmeter doesn't really have a way to treat visible areas around a skin separate from desired bounds (unlike say CSS' box model or Windows' windows with their shadows, etc), so whatever in the skin is physically consuming dimensions becomes part of the skin's snappable point.

Have I overlooked any other methods? Is there a way to create separate snapping bounds from the skin bounds?

(Of course the other aspect is even if they could snap closer together any peripheral effects like shadows may overlap depending on z index, but let's say for the sake of it such shadows only appear on mouse over)

Statistics: Posted by Crest — Yesterday, 5:19 am — Replies 2 — Views 71



Viewing all articles
Browse latest Browse all 871

Trending Articles