Menu

#2927 Improper look of ttk::checkbutton -style Toolbutton

open
5
2011-09-28
2011-09-27
Zbigniew
No

Currently it has improperly arranged borders: it doesn't look by now as "pressed", but rather still like raised - with the difference, that the light comes from "bottom right". IMHO the white "border" (bottom and right) should be removed completely, then it would look as "pressed" (checked on Linux, Tk8.6b2, all themes). Making bottom and right sides "lit" is wrong; either they should be as gray, as the background (or in any other bg colour), or they should be 1-pixel thick black line. How does it look presently: http://postimage.org/image/c68zo0xw/ (Upper: "untouched" (sets the associated variable to 0), the lower one: "depressed" - which, in fact, doesn't look as "pushed in". The "default" style - but the same problem is using all the other styles).

Discussion

  • Zbigniew

    Zbigniew - 2011-09-27
    • labels: --> 104341
     
  • Donal K. Fellows

    • labels: 104341 --> 88. Themed Tk
    • assigned_to: nobody --> jenglish
     
  • Zbigniew

    Zbigniew - 2011-09-28

    I would to add, that a very good example, how "depressed" button should look like, is the look of "ordinary" tk button, for example:
    pack [button .b -image $someImage -relief flat -highlightthickness 0]

    When clicking (and holding LMB), such button has proper "look & feel" of depressed button (properly "lit" still from top-left, and the image has been slightly moved diagonally in bottom-right direction). So there's not much more than copy the existing, available solution.

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.