Ticket #12572: DiskProbe-DataView-Color.patch

File DiskProbe-DataView-Color.patch, 1020 bytes (added by looncraz, 8 years ago)
  • src/apps/diskprobe/DataView.cpp

    From 83773a11bf292731a20e804f19faab86fb06ea09 Mon Sep 17 00:00:00 2001
    From: looncraz <looncraz@looncraz.net>
    Date: Sat, 9 Jan 2016 14:29:17 -0600
    Subject: [PATCH] DiskProbe DataView Color
    
    Previously the DataView relied on the default colors, which layout now
    overrides more uniformly.  The document colors are more appropriate.
    
    After the addition of the layout changes, the DataView would adopt
    system panel colors.
    ---
     src/apps/diskprobe/DataView.cpp | 4 ++++
     1 file changed, 4 insertions(+)
    
    diff --git a/src/apps/diskprobe/DataView.cpp b/src/apps/diskprobe/DataView.cpp
    index 7072f1f..c2df055 100644
    a b DataView::AttachedToWindow()  
    141141    MakeFocus(true);
    142142        // this seems to be necessary - if we don't do this here,
    143143        // the view is sometimes focus, but IsFocus() returns false...
     144
     145    SetViewUIColor(B_DOCUMENT_BACKGROUND_COLOR);
     146    SetLowUIColor(ViewUIColor());
     147    SetHighUIColor(B_DOCUMENT_TEXT_COLOR);
    144148}
    145149
    146150