Winstep Forums
http://forums.winstep.net/phpBB2/

So, what's next after v18.8?
http://forums.winstep.net/phpBB2/viewtopic.php?f=2&t=10797
Page 2 of 7

Author:  winstep [ Wed Sep 12, 2018 9:53 pm ]
Post subject:  Re: So, what's next after v18.8?

winstep wrote:
some Shelf themes have large margin offsets (i.e.; the space between the left/right edges of the Shelf - for horizontal Shelves - and where icons start/end). This is not a problem when the theme is applied to a Shelf, but with Drawers it can result in much thicker Drawers than needed.

So, there is a possible solution: because Drawers only ever show a single row of icons, they don't use the vertical icon spacing field. By actually making use of this field in Drawers - and especially by allowing it to go negative - we could use it as a way to reduce an overly large margin offset in a specific theme.


And as I started looking into implementing this, I was forced to eat a hefty dose of humble pie: in v18.8, the margins of Drawers are actually 20 pixels more than they should be. And this without even beginning to 'eat' at the theme's bitmap margins, which was my original idea above.

You see, the default vertical icon margin for Shelves (as it appears in the Icon Spacing dialog) is 19 pixels. In the code to render the Shelf/Drawer this value is added to a fixed 20 pixel value (so 20 pixels + user defined vertical icon spacing). What I did not notice because that part of the code was so old, however, is that the *actual* internal value is 19 pixels less than what shows in the Icon Spacing dialog. So, if the dialog shows 19 pixels for the vertical icon spacing, internally that value is 0. If you reduce it to 10 pixels, the *internal* value is -9.

This number was in turn deducted from that 'fixed' 20 pixels 'buffer zone'. I did not notice that so I thought that simply ignoring the icon vertical space value would do the trick. As a result, Drawers are currently 20 pixels larger than they need to be.

So, with the changes I just made, Drawers will already be by default 20 pixels less 'tall' than they are in v18.8 (you can always increase vertical icon spacing to make up for this). Because I added the icon vertical spacing setting back to Drawers, you can now reduce that size even further (but always within the limits of the theme, there are themes where the margins are already so 'tight' that reducing the vertical icon spacing to a number under 19 pixels will have NO EFFECT whatsoever).

The DarkTech theme is a great way to illustrate these differences because that theme actually features HUGE bitmap margins:

Drawer size in v18.8:

Image

Default Drawer size in next release:

Image

Drawer size in next release with icon vertical spacing set to 0:

Image

Author:  Windy [ Wed Sep 12, 2018 10:29 pm ]
Post subject:  Re: So, what's next after v18.8?

:shock: Mine looks like the last one. The spacing on mine is minimal.

Author:  winstep [ Wed Sep 12, 2018 10:33 pm ]
Post subject:  Re: So, what's next after v18.8?

Windy wrote:
:shock: Mine looks like the last one. The spacing on mine is minimal.


Yeah, and what theme are you using for it? Bet it's not DarkTech, or it would look like the first image. :P

Author:  Windy [ Wed Sep 12, 2018 10:50 pm ]
Post subject:  Re: So, what's next after v18.8?

I'm using K-TEK 4D

Author:  winstep [ Wed Sep 12, 2018 11:18 pm ]
Post subject:  Re: So, what's next after v18.8?

Windy wrote:
I'm using K-TEK 4D


There you go. As I said, actual margins depend on the theme.

Author:  Windy [ Wed Sep 12, 2018 11:46 pm ]
Post subject:  Re: So, what's next after v18.8?

Won't it screw up the margin size on themes that currently have correct spacing if you change it?

Author:  winstep [ Wed Sep 12, 2018 11:56 pm ]
Post subject:  Re: So, what's next after v18.8?

Windy wrote:
Won't it screw up the margin size on themes that currently have correct spacing if you change it?


From the themes I tried here it shouldn't, because it won't go below minimum margin settings no matter what the icon vertical spacing is set to. Anyway, even if an icon spacing of 0 makes some obscure theme look 'odd', all you need to do is increase that same spacing to fix the problem. :)

Author:  nexter [ Thu Sep 13, 2018 1:48 am ]
Post subject:  Re: So, what's next after v18.8?

winstep wrote:
winstep wrote:
some Shelf themes have large margin offsets (i.e.; the space between the left/right edges of the Shelf - for horizontal Shelves - and where icons start/end). This is not a problem when the theme is applied to a Shelf, but with Drawers it can result in much thicker Drawers than needed.

So, there is a possible solution: because Drawers only ever show a single row of icons, they don't use the vertical icon spacing field. By actually making use of this field in Drawers - and especially by allowing it to go negative - we could use it as a way to reduce an overly large margin offset in a specific theme.


And as I started looking into implementing this, I was forced to eat a hefty dose of humble pie: in v18.8, the margins of Drawers are actually 20 pixels more than they should be. And this without even beginning to 'eat' at the theme's bitmap margins, which was my original idea above.

You see, the default vertical icon margin for Shelves (as it appears in the Icon Spacing dialog) is 19 pixels. In the code to render the Shelf/Drawer this value is added to a fixed 20 pixel value (so 20 pixels + user defined vertical icon spacing). What I did not notice because that part of the code was so old, however, is that the *actual* internal value is 19 pixels less than what shows in the Icon Spacing dialog. So, if the dialog shows 19 pixels for the vertical icon spacing, internally that value is 0. If you reduce it to 10 pixels, the *internal* value is -9.

This number was in turn deducted from that 'fixed' 20 pixels 'buffer zone'. I did not notice that so I thought that simply ignoring the icon vertical space value would do the trick. As a result, Drawers are currently 20 pixels larger than they need to be.

So, with the changes I just made, Drawers will already be by default 20 pixels less 'tall' than they are in v18.8 (you can always increase vertical icon spacing to make up for this). Because I added the icon vertical spacing setting back to Drawers, you can now reduce that size even further (but always within the limits of the theme, there are themes where the margins are already so 'tight' that reducing the vertical icon spacing to a number under 19 pixels will have NO EFFECT whatsoever).

The DarkTech theme is a great way to illustrate these differences because that theme actually features HUGE bitmap margins:

Drawer size in v18.8:

Image

Default Drawer size in next release:

Image

Drawer size in next release with icon vertical spacing set to 0:

Image

Very neat. Like it.

Author:  winstep [ Fri Sep 14, 2018 7:13 pm ]
Post subject:  Re: So, what's next after v18.8?

winstep wrote:
Something else I would like to add (provided it doesn't imply a lot of work to implement because of other internal dependencies) is an option to left/center/right justify icons in the Shelf. Seems to be a popular request too.


Ok, so I have been thinking a bit more about this. For the sake of simplicity lets just talk about centering icons:

This is the type of feature that only makes visual sense, in my opinion, when you have less than a full row of icons. Once you have just as many icons or more icons than will fit in a single row, icon justification stops having any effect, at least for that first row (all the icon 'slots' are filled anyway).

Of course, once you overflow a single row of icons you could still center the remaining icons in row 2, but my question to you guys is: would you - or indeed SHOULD you - REALLY do this?

It would make my life a lot simpler for various technical reasons if icon justification only has an effect when there are less icons in the Shelf than would fit in a single icon row. Once you get past that point, icons would always be left justified, as it happens now.

This is the difference, for a Shelf with two visible icon rows, between, e.g.;

Code:
   AB
   

but once you have more icons that would fit in a single row it would either become
Code:
ABCDEFGH
   IJ

or
Code:
ABCDEFGH
IJ


I'm voting for the latter.

I think icon centering on the Shelf only makes visual sense (or would only be utilized anyway) when you have less icons in a tab than would fit in a single icon row. After that, it doesn't really matter as the 'intention' of the visual effect is lost (I think).

On the other hand this might go against user expectations...

Hope I was able to explain myself well... what do you guys think?

Author:  seeker [ Fri Sep 14, 2018 7:28 pm ]
Post subject:  Re: So, what's next after v18.8?

winstep wrote:
Code:
ABCDEFGH
IJ




or in my case

Code:
IJ
ABCDEFGH

Author:  winstep [ Fri Sep 14, 2018 7:32 pm ]
Post subject:  Re: So, what's next after v18.8?

seeker wrote:
or in my case

Code:
IJ
ABCDEFGH


Har har... :P

How about an answer to my question too, please? :wink:

EDIT: Or was that your vote? lol

Author:  nexter [ Fri Sep 14, 2018 8:38 pm ]
Post subject:  Re: So, what's next after v18.8?

winstep wrote:
winstep wrote:
Something else I would like to add (provided it doesn't imply a lot of work to implement because of other internal dependencies) is an option to left/center/right justify icons in the Shelf. Seems to be a popular request too.

Ok, so I have been thinking a bit more about this. For the sake of simplicity lets just talk about centering icons:

This is the type of feature that only makes visual sense, in my opinion, when you have less than a full row of icons. Once you have just as many icons or more icons than will fit in a single row, icon justification stops having any effect, at least for that first row (all the icon 'slots' are filled anyway).

Of course, once you overflow a single row of icons you could still center the remaining icons in row 2, but my question to you guys is: would you - or indeed SHOULD you - REALLY do this?

A definite and vocal 'No' and 'No' here. :)
winstep wrote:
It would make my life a lot simpler for various technical reasons if icon justification only has an effect when there are less icons in the Shelf than would fit in a single icon row. Once you get past that point, icons would always be left justified, as it happens now.

This is the difference, for a Shelf with two visible icon rows, between, e.g.;

Code:
   AB
   

but once you have more icons that would fit in a single row it would either become
Code:
ABCDEFGH
   IJ

or
Code:
ABCDEFGH
IJ


I'm voting for the latter.

I think icon centering on the Shelf only makes visual sense (or would only be utilized anyway) when you have less icons in a tab than would fit in a single icon row. After that, it doesn't really matter as the 'intention' of the visual effect is lost (I think).

On the other hand this might go against user expectations...

Hope I was able to explain myself well... what do you guys think?

To me, the whole thing seems totally superfluous, period. But if it has to be, my vote would be the same as yours Jorge, and it should only apply where there is a single, not filled icon row in a tab or shelf, for that matter. And furthermore, 'centred' is the only option there that would make sense, as 'left' is the default anyway and 'right' doesn't make the slightest bit of sense.

Of course, you could go the whole hog and do icon alignment sort of free-form, where you could place icons in any way you like anywhere within available icon spaces. This was how it was, IIRC, in the shelf in the OPENSTEP 4 beta (or it might have been 'The Shelf' app/Fiend.app's shelf). And then why not 'liberate' tiled docks as well and allow icon tiles to be dragged off the dock and placed anywhere on the desktop and fall back into their original place when dragged back to the dock, as with Fiend.app? ;)

PS - On second thoughts, 'right' justification would actually make eminent sense where languages are in use that are written right to left! (Always seemed more 'logical' to me, writing right to left, being left-handed.)

Author:  Windy [ Fri Sep 14, 2018 10:53 pm ]
Post subject:  Re: So, what's next after v18.8?

winstep wrote:
winstep wrote:
Something else I would like to add (provided it doesn't imply a lot of work to implement because of other internal dependencies) is an option to left/center/right justify icons in the Shelf. Seems to be a popular request too.


Ok, so I have been thinking a bit more about this. For the sake of simplicity lets just talk about centering icons:

This is the type of feature that only makes visual sense, in my opinion, when you have less than a full row of icons. Once you have just as many icons or more icons than will fit in a single row, icon justification stops having any effect, at least for that first row (all the icon 'slots' are filled anyway).

Of course, once you overflow a single row of icons you could still center the remaining icons in row 2, but my question to you guys is: would you - or indeed SHOULD you - REALLY do this?

It would make my life a lot simpler for various technical reasons if icon justification only has an effect when there are less icons in the Shelf than would fit in a single icon row. Once you get past that point, icons would always be left justified, as it happens now.

This is the difference, for a Shelf with two visible icon rows, between, e.g.;

Code:
   AB
   

but once you have more icons that would fit in a single row it would either become
Code:
ABCDEFGH
   IJ

or
Code:
ABCDEFGH
IJ


I'm voting for the latter.

I think icon centering on the Shelf only makes visual sense (or would only be utilized anyway) when you have less icons in a tab than would fit in a single icon row. After that, it doesn't really matter as the 'intention' of the visual effect is lost (I think).

On the other hand this might go against user expectations...

Hope I was able to explain myself well... what do you guys think?


Centering remaining icons in a row would just cause confusion. It would be like me typing this sentence, and then instead of hitting the Enter/Return button and keep typing, I would then hit the Tab button and center the few words left in the sentence.

So, this is in accordance with why it's natural to have the icons start alphabetically at the top left and move to the right even though the Shelf is inverted and docked at the top.

You could however make it an option if for some reason someone wants to do that, but by no means should centering remaining icons be the default.

Author:  seeker [ Sat Sep 15, 2018 1:46 am ]
Post subject:  Re: So, what's next after v18.8?

winstep wrote:
seeker wrote:
or in my case

Code:
IJ
ABCDEFGH


Har har... :P

How about an answer to my question too, please? :wink:

EDIT: Or was that your vote? lol


that was actually my vote, left justified

Author:  winstep [ Sat Sep 15, 2018 2:19 am ]
Post subject:  Re: So, what's next after v18.8?

seeker wrote:
that was actually my vote, left justified


Ok, thanks. Guess we all agree on this one then. :)

In the mean time, tying the loose ends on the never released Office theme so I can finally (after all these years) upload it to Wincustomize (P.S. mockup screenshot, disregard the double panel Start Menu):

Image

Page 2 of 7 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/