summaryrefslogtreecommitdiff
path: root/UFileAssoc.pas
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@redhat.com>2025-01-04 20:41:26 +0100
committerTomas Bzatek <tbzatek@redhat.com>2025-11-27 21:42:57 +0100
commit90db8b6652f73ddc335922d3a7c593878d83c45e (patch)
tree6b3f8ed57d4dc3358c2965bf41f6e613b8b80bf0 /UFileAssoc.pas
parent63ff1bea9bb1e87a7e2643f680d04f2b9c00d072 (diff)
downloadtuxcmd-90db8b6652f73ddc335922d3a7c593878d83c45e.tar.xz
Basic ListView CSS styling
Diffstat (limited to 'UFileAssoc.pas')
-rw-r--r--UFileAssoc.pas11
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;