zamtmn / metadarkstyle

67 stars 16 forks source link

Target "Linux" not compiling, solution #34

Closed jonyrh closed 12 months ago

jonyrh commented 12 months ago

Hi, zamtmn!

If you have meny targets on your one project, you need modify file uMetaDarkStyle.pas - add {$IFDEF WINDOWS} on linux compile error TDSColors - unknown...

solution

{$IFDEF WINDOWS} // add
procedure ApplyMetaDarkStyle(const CS:TDSColors);
{$ENDIF}  // add

implementation

{$IFDEF WINDOWS} // add
procedure ApplyMetaDarkStyle(const CS:TDSColors);
begin
  InitDarkMode;
  Initialize(CS);
  ApplyDarkStyle;
end;
{$ENDIF}  // add
zamtmn commented 12 months ago

Please create PR, I don't have Linux right now to check

jonyrh commented 12 months ago

cross-compile project for windows and linux: test_cross.zip

update: you PR - is project or pull request?!

zamtmn commented 12 months ago

pull request

jonyrh commented 12 months ago

linux not need, jast change as in solution

zamtmn commented 12 months ago

Please make it in a pull request, I will gladly accept it

zamtmn commented 12 months ago

Thanks!