PDA

View Full Version : Display Alarm indication [& font flexibility question]



Triode
2005-07-31, 15:20
Two things I'd like some feedback on - one easy one harder:

Easy:
Bug 1526 asks for an indication that the alarm is on when in the dateTime screensaver [at least that is how I interpret the request]
The attached is a quick go at this for SB2. It puts a notesymbol in overlay1 when the alarm is on.

Does this look right? Would it look better it the note symbol was on the left / on the bottom? [bottom not possible with current
rending code - see below]

Harder:
I have been wondering for a while whether it would be appropriate to allow setting of the fonts for each component of the display
independently rather than for the whole line1/line2. As can be seen from the alarm diff, it is currently possible to set the font
size for each line in the lines funtion. By fixing the font size for the note symbol in the lines function I am able to display
this at the same time as the one line datatime, but there are restrictions - which is why in two line mode the note symbol must be
from the same font as line1.

If the fonts / rendering code were changed to allow separate definition of the font for each of line1, line2, overlay1, overlay2,
center1, center2 would this be useful to people? Do any plugin developers currently set the font in their lines function? If so
would they make use of this? [I'm thinking you could have 2 lines of text and then a single full height overlay, or one line of text
and two overlays etc] It would need to be used with care to avoid overlapping text.

However doing this means that I am expecting plugin developers to get more adventurous with the graphic displays than the old 2 line
displays...

So does this sound useful??

Adrian

dean
2005-07-31, 18:12
Hey Triode,

On Jul 31, 2005, at 3:20 PM, Triode wrote:
> Easy:
> Bug 1526 asks for an indication that the alarm is on when in the
> dateTime screensaver [at least that is how I interpret the request]
> The attached is a quick go at this for SB2. It puts a notesymbol
> in overlay1 when the alarm is on.
>
> Does this look right? Would it look better it the note symbol was
> on the left / on the bottom? [bottom not possible with current
> rending code - see below]
Top right sounds good to me. I'd really like a bell symbol instead.
When I get a second, I'll add it to the default fonts.

> If the fonts / rendering code were changed to allow separate
> definition of the font for each of line1, line2, overlay1,
> overlay2, center1, center2 would this be useful to people?
I think that this would be great.

Triode
2005-08-01, 10:41
>> If the fonts / rendering code were changed to allow separate definition of the font for each of line1, line2, overlay1,
>> overlay2, center1, center2 would this be useful to people?
> I think that this would be great.

Right - I'll look at this. I was thinking about moving to a hash definition rather than an array [with backwards compatibility for
2 element array].

So essentially a lines function would do:

my $parts = {
'line1' => 'My line1',
'line2' => 'My line2',
'overlay1' => 'My overlay1',
'fonts' => {
'line1' => 'standard.1',
'line2' => 'standard.2',
'overlay1' => 'full.2',
}
}
return $parts;

Sound OK?

dean
2005-08-01, 11:16
Sounds good to me.
On Aug 1, 2005, at 10:41 AM, Triode wrote:

>>> If the fonts / rendering code were changed to allow separate
>>> definition of the font for each of line1, line2, overlay1,
>>> overlay2, center1, center2 would this be useful to people?
>>>
>> I think that this would be great.
>>
>
> Right - I'll look at this. I was thinking about moving to a hash
> definition rather than an array [with backwards compatibility for 2
> element array].
>
> So essentially a lines function would do:
>
> my $parts = {
> 'line1' => 'My line1',
> 'line2' => 'My line2',
> 'overlay1' => 'My overlay1',
> 'fonts' => {
> 'line1' => 'standard.1',
> 'line2' => 'standard.2',
> 'overlay1' => 'full.2',
> }
> }
> return $parts;
>
> Sound OK?
>
>

dean
2005-08-01, 16:17
On Jul 31, 2005, at 3:20 PM, Triode wrote:

> Two things I'd like some feedback on - one easy one harder:
>
> Easy:
> Bug 1526 asks for an indication that the alarm is on when in the
> dateTime screensaver [at least that is how I interpret the request]
> The attached is a quick go at this for SB2. It puts a notesymbol
> in overlay1 when the alarm is on.
>
> Does this look right? Would it look better it the note symbol was
> on the left / on the bottom? [bottom not possible with current
> rending code - see below]
Triode: I committed a slightly modified version of your patch, along
with some fonts with bell symbols in them.

Check it out and let me know what you think.