[haiku-commits] haiku: hrev51066 - src/preferences/network

  • From: kallisti5@xxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 6 Apr 2017 00:39:54 +0200 (CEST)

hrev51066 adds 1 changeset to branch 'master'
old head: 5fbe0dd4d769e78df2dcff7841f2e731d568723d
new head: 476da4a52fbeccf9147fa83d09c5460c4b4196b1
overview: 
http://cgit.haiku-os.org/haiku/log/?qt=range&q=476da4a52fbe+%5E5fbe0dd4d769

----------------------------------------------------------------------------

476da4a52fbe: network preflet: Fix interface icon spacing

                          [ Alexander von Gluck IV <kallisti5@xxxxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev51066
Commit:      476da4a52fbeccf9147fa83d09c5460c4b4196b1
URL:         http://cgit.haiku-os.org/haiku/commit/?id=476da4a52fbe
Author:      Alexander von Gluck IV <kallisti5@xxxxxxxxxxx>
Date:        Wed Apr  5 17:34:44 2017 UTC

----------------------------------------------------------------------------

1 file changed, 4 insertions(+), 2 deletions(-)
src/preferences/network/InterfaceListItem.cpp | 6 ++++--

----------------------------------------------------------------------------

diff --git a/src/preferences/network/InterfaceListItem.cpp 
b/src/preferences/network/InterfaceListItem.cpp
index f36aa8f..1b12117 100644
--- a/src/preferences/network/InterfaceListItem.cpp
+++ b/src/preferences/network/InterfaceListItem.cpp
@@ -83,7 +83,8 @@ InterfaceListItem::DrawItem(BView* owner, BRect bounds, bool 
complete)
                - BPoint(be_plain_font->StringWidth(stateText)
                        + be_control_look->DefaultLabelSpacing(), 0);
        BPoint namePoint = bounds.LeftTop()
-               + BPoint(ICON_SIZE + 12, fFirstLineOffset);
+               + BPoint(ICON_SIZE + (be_control_look->DefaultLabelSpacing() * 
2),
+               fFirstLineOffset);
 
        if (fDisabled) {
                owner->SetDrawingMode(B_OP_ALPHA);
@@ -119,7 +120,8 @@ InterfaceListItem::DrawItem(BView* owner, BRect bounds, 
bool complete)
        owner->SetFont(be_plain_font);
        owner->DrawString(stateText, statePoint);
 
-       BPoint linePoint = bounds.LeftTop() + BPoint(ICON_SIZE + 12,
+       BPoint linePoint = bounds.LeftTop()
+               + BPoint(ICON_SIZE + (be_control_look->DefaultLabelSpacing() * 
2),
                fFirstLineOffset + fLineOffset);
        owner->DrawString(fSubtitle, linePoint);
 


Other related posts:

  • » [haiku-commits] haiku: hrev51066 - src/preferences/network - kallisti5