Changeset 289 for trunk/hiptop
- Timestamp:
- 07/25/06 23:19:33 (18 years ago)
- Location:
- trunk/hiptop/pester
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hiptop/pester/locale/en_US/Pester.rsrc
r287 r289 55 55 actionMenu = ID_ALARM_LIST_MENU 56 56 className = "net.sabi.pester.AlarmListWindow" 57 57 58 icon = ID_SMALL_ICON 59 60 image 61 bitmap = ID_SPLASH_SCREEN_NO_TITLE 62 alpha = 127 63 alignWithParentBottom = -48 64 alignWithParentRight = -48 58 65 59 66 activeListView … … 63 70 initialFocus 64 71 widthPct = 100 72 heightPct = 100 65 73 itemHeight = 12 66 74 className = "net.sabi.pester.AlarmListView" 67 75 doesNotHaveBorder 76 transparent 77 68 78 endScreen 69 79 -
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.