ALT Linux Bugzilla
– Attachment 1153 Details for
Bug 8090
button border patch
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
ButtonBorder patch
icewm-1.2.23-alt-buttonborder.patch (text/plain), 1.83 KB, created by
Kachalov Anton
on 2005-09-29 18:25:52 MSD
(
hide
)
Description:
ButtonBorder patch
Filename:
MIME Type:
Creator:
Kachalov Anton
Created:
2005-09-29 18:25:52 MSD
Size:
1.83 KB
patch
obsolete
>--- src/themable.h.orig 2005-08-14 22:33:08 +0400 >+++ src/themable.h 2005-09-29 17:54:02 +0400 >@@ -16,6 +12,8 @@ > XIV(bool, titleBarJoinRight, false) > XIV(bool, showFrameIcon, true) > >+XIV(bool, showButtonBorder, true) >+ > XIV(int, wsBorderX, 6) > XIV(int, wsBorderY, 6) > XIV(int, wsDlgBorderX, 2) >@@ -162,6 +160,8 @@ > OBV("TitleBarJoinRight", &titleBarJoinRight, "Join title*T and title*B"), > OBV("ShowMenuButtonIcon", &showFrameIcon, "Show application icon over menu button"), > >+ OBV("ShowButtonBorder", &showButtonBorder, "Show button border"), >+ > OIV("BorderSizeX", &wsBorderX, 0, 128, "Horizontal window border"), > OIV("BorderSizeY", &wsBorderY, 0, 128, "Vertical window border"), > OIV("DlgBorderSizeX", &wsDlgBorderX, 0, 128, "Horizontal dialog window border"), >--- src/ybutton.cc.orig 2005-08-14 22:33:08 +0400 >+++ src/ybutton.cc 2005-09-29 17:23:12 +0400 >@@ -112,8 +112,11 @@ > g.setColor(surface.color); > > if (wmLook == lookMetal) { >- g.drawBorderM(x, y, w - 1, h - 1, !d); >- d = 0; x += 2; y += 2; w -= 4; h -= 4; >+ if (showButtonBorder) { >+ g.drawBorderM(x, y, w - 1, h - 1, !d); >+ d = 0; x += 2; y += 2; w -= 4; h -= 4; >+ } else >+ d=0; > } else if (wmLook == lookGtk) { > g.drawBorderG(x, y, w - 1, h - 1, !d); > x += 1 + d; y += 1 + d; w -= 3; h -= 3; >@@ -123,7 +126,8 @@ > } > > paint(g, d, YRect(x, y, w, h)); >- paintFocus(g, YRect(x, y, w, h)); >+ if (showButtonBorder) >+ paintFocus(g, YRect(x, y, w, h)); > } > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 8090
: 1153