[patch] apply colours to parts

Malte Starostik malte at kde.org
Tue Oct 15 20:53:21 BST 2002


Hi,

this moves the palette modification code so that it not only applies to form 
elements but also embedded parts - I've came accross it in reaktivate looking 
for a way to access the background colour.
Frames and iframes still use the default background, even without special 
handling.
One question remains for me: an <object> only gets a non-grey background 
colour if it's explicitly set on the object, but this will still be grey:

<p style="text-align: center; background: #000080">
    <object ... ></object>ยท
</p>

-Malte
-- 
#!/usr/bin/perl
$t='char|short|int|long|void';%m=qw(U "unsigned\040$3" W "w$3_t");while(<>)
{/#define UNICODE/and$m{T}=$m{W};s/\b(LP)?([UWT])?($t)\b/lc(eval$m{$2}||$3)
.($1?'*':'')/gei;print;}print"/* Cleaned by Malte's WinAPI sanitizer */\n";
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rendering.diff
Type: text/x-diff
Size: 7392 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20021015/0c9a7949/attachment.diff>


More information about the kfm-devel mailing list