summaryrefslogtreecommitdiff
path: root/plugins/QuickSearch
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/QuickSearch')
-rw-r--r--plugins/QuickSearch/i_ok.inc6
-rw-r--r--plugins/QuickSearch/sr_frame.pas7
2 files changed, 2 insertions, 11 deletions
diff --git a/plugins/QuickSearch/i_ok.inc b/plugins/QuickSearch/i_ok.inc
index a464d30e7b..3211939c55 100644
--- a/plugins/QuickSearch/i_ok.inc
+++ b/plugins/QuickSearch/i_ok.inc
@@ -61,16 +61,12 @@ end;
function ColorReload(wParam:WPARAM;lParam:LPARAM):int;cdecl;
var
- cid:TColourID;
i:tqscolor;
begin
result:=0;
- cid.cbSize:=SizeOf(cid);
- StrCopy(cid.group,qs_module);
for i:=Low(tqscolor) to High(tqscolor) do
begin
- StrCopy(cid.name ,QSColors[i].descr);
- QSColors[i].color:=CallService(MS_COLOUR_GETA,tlparam(@cid),0);
+ QSColors[i].color:=Colour_Get(qs_module,QSColors[i].descr);
end;
end;
diff --git a/plugins/QuickSearch/sr_frame.pas b/plugins/QuickSearch/sr_frame.pas
index 44cc51bb60..e66fe68568 100644
--- a/plugins/QuickSearch/sr_frame.pas
+++ b/plugins/QuickSearch/sr_frame.pas
@@ -127,14 +127,9 @@ begin
end;
function ColorReload(wParam:WPARAM;lParam:LPARAM):int;cdecl;
-var
- cid:TColourID;
begin
result:=0;
- cid.cbSize:=SizeOf(cid);
- StrCopy(cid.group,'QuickSearch');
- StrCopy(cid.name ,frm_back);
- frm_bkg:=CallService(MS_COLOUR_GETA,twparam(@cid),0);
+ frm_bkg:=Colour_Get('QuickSearch',frm_back);
DeleteObject(hbr);
hbr:=CreateSolidBrush(frm_bkg);