Ignore:
Timestamp:
07/25/06 23:19:33 (18 years ago)
Author:
Nicholas Riley
Message:

More alarm list prettification.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hiptop/pester/net/sabi/pester/AlarmListView.java

    r286 r289  
    2626        sAlarmListWindow = (AlarmListWindow)getWindow();
    2727        mToolTipAlarm = new danger.app.Alarm(0, this);
    28         setAutoResize(true);
     28        setHasBorder(false);
    2929        setList(Alarms.getList());
    3030        Application.registerForEvent(this, Event.EVENT_TIME_CHANGED);
     
    136136    protected void paintItemLine(Pen p, int left, int top, int right, int bottom,
    137137                                 boolean focused, Object item) {
     138        int oldOutlineColor = p.getTextOutlineColor();
    138139        if (focused) {
    139140            paintSelection(p, left, top, right, bottom);
    140141            p.setColor(getStyle().getColor(Style.BACKGROUND_COLOR));
     142            p.setTextOutlineColor(getStyle().getColor(Style.FOREGROUND_COLOR));
    141143        } else {
    142144            p.setColor(getStyle().getColor(Style.FOREGROUND_COLOR));
     
    149151        left += 2;
    150152        left += p.drawText(left, top, alarm.getDateTimeString(true));
    151         p.setFont(font.findVariant(null, -1, Font.F_BOLD));
     153        p.setFont(font.findVariant(null, -1, Font.F_BOLD | Font.F_OUTLINE));
    152154        // XXX ellipsize
    153155        p.drawText(left, top, " " + alarm.getMessage());
     156        // restore
     157        p.setTextOutlineColor(oldOutlineColor);
    154158        p.setFont(font);
    155159    }
Note: See TracChangeset for help on using the changeset viewer.