Originally Posted by
Samy_Merchi
Scrollbars indeed seem to be Fitt's-aware, but the close button in almost any case is not. You end up always flicking your mouse to the corner, then carefully backing away for a few pixels, instead of just going to the corner. Very very annoying!
The code above shows fitts aware buttons horizonally. To get them right vertically is possible but very ugly.
change this
Code:
<frame_geometry name="no_borders" parent="normal">
<distance name="left_width" value="0"/>
<distance name="right_width" value="0"/>
<distance name="bottom_height" value="0"/>
<distance name="left_titlebar_edge" value="2"/>
<distance name="right_titlebar_edge" value="2"/>
<border name="title_border" left="0" right="0" top="0" bottom="1"/>
<border name="button_border" left="0" right="0" top="3" bottom="3"/>
</frame_geometry>
to this
Code:
<frame_geometry name="no_borders" parent="normal">
<distance name="left_width" value="0"/>
<distance name="right_width" value="0"/>
<distance name="bottom_height" value="0"/>
<distance name="left_titlebar_edge" value="2"/>
<distance name="right_titlebar_edge" value="2"/>
<border name="title_border" left="0" right="0" top="0" bottom="1"/>
<border name="button_border" left="0" right="0" top="0" bottom="6"/>
</frame_geometry>
it is the "button_border" top="3" that is keeping it from being fitts aware in the extreme top 'corner' (above the button). If you change bottom to 0 the button fills the entire titlebar. Again, it works but is extremely ugly. The Windows Desktop is in its very nature ugly, and therefore intented to be 'useable'. Linux supposedly strives to be both usable and appealing to the eye. Bottom line is that it's very hard to achieve both, but there really is no excuse for not at least having the above code, in my previous post, so that the buttons are at least half fitts aware. That is, so that you can at least slap your mouse to the side of the button and be able to close the window without having to come back over the button.
Bookmarks