Changeset 289 for trunk/hiptop/pester/net/sabi
- Timestamp:
- 07/25/06 23:19:33 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hiptop/pester/net/sabi/pester/AlarmListView.java
r286 r289 26 26 sAlarmListWindow = (AlarmListWindow)getWindow(); 27 27 mToolTipAlarm = new danger.app.Alarm(0, this); 28 set AutoResize(true);28 setHasBorder(false); 29 29 setList(Alarms.getList()); 30 30 Application.registerForEvent(this, Event.EVENT_TIME_CHANGED); … … 136 136 protected void paintItemLine(Pen p, int left, int top, int right, int bottom, 137 137 boolean focused, Object item) { 138 int oldOutlineColor = p.getTextOutlineColor(); 138 139 if (focused) { 139 140 paintSelection(p, left, top, right, bottom); 140 141 p.setColor(getStyle().getColor(Style.BACKGROUND_COLOR)); 142 p.setTextOutlineColor(getStyle().getColor(Style.FOREGROUND_COLOR)); 141 143 } else { 142 144 p.setColor(getStyle().getColor(Style.FOREGROUND_COLOR)); … … 149 151 left += 2; 150 152 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)); 152 154 // XXX ellipsize 153 155 p.drawText(left, top, " " + alarm.getMessage()); 156 // restore 157 p.setTextOutlineColor(oldOutlineColor); 154 158 p.setFont(font); 155 159 }
Note:
See TracChangeset
for help on using the changeset viewer.