diff options
| author | Tomas Bzatek <tbzatek@redhat.com> | 2025-01-04 20:41:26 +0100 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@redhat.com> | 2025-11-27 21:42:57 +0100 |
| commit | 90db8b6652f73ddc335922d3a7c593878d83c45e (patch) | |
| tree | 6b3f8ed57d4dc3358c2965bf41f6e613b8b80bf0 /UFileAssoc.pas | |
| parent | 63ff1bea9bb1e87a7e2643f680d04f2b9c00d072 (diff) | |
| download | tuxcmd-90db8b6652f73ddc335922d3a7c593878d83c45e.tar.xz | |
Basic ListView CSS styling
Diffstat (limited to 'UFileAssoc.pas')
| -rw-r--r-- | UFileAssoc.pas | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/UFileAssoc.pas b/UFileAssoc.pas index 3e14bf5..0924866 100644 --- a/UFileAssoc.pas +++ b/UFileAssoc.pas @@ -244,8 +244,7 @@ begin end; procedure AssignFileType(Item: PDataItem); -var AColor: TGDKColor; - Plugin: TVFSPlugin; +var Plugin: TVFSPlugin; Assoc: TFileAssoc; begin with PDataItem(Item)^ do begin @@ -274,12 +273,8 @@ begin then Icon := Assoc.LnkPixmap.FPixbuf else Icon := Assoc.Pixmap.FPixbuf; end; - // TODO -{ if ItemColor = nil then begin - if (Assoc.ColorString = '') or (not StringToGDKColor(Assoc.ColorString, AColor)) - then ItemColor := NormalItemGDKColor - else ItemColor := GDKColorToPGdkColor(AColor); - end; } + if ItemColor = nil then + ItemColor := StringToGDKRGBA(Assoc.ColorString); end; end; end; |
