Ignore:
Timestamp:
Mar 19, 2021, 9:59:02 AM (4 years ago)
Author:
chronos
Message:
  • Added: Allow to set gamma corection in settings dialog.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/CevoComponents/ScreenTools.pas

    r316 r317  
    9292procedure VLightGradient(ca: TCanvas; x, y, Height, Color: integer);
    9393procedure VDarkGradient(ca: TCanvas; x, y, Height, Kind: integer);
     94procedure UnderlinedTitleValue(Canvas: TCanvas; Title, Value: string; X, Y, Width: Integer);
    9495procedure NumberBar(dst: TBitmap; x, y: integer; Cap: string; val: integer;
    9596  const T: TTexture);
     
    13131314  Gradient(ca, x, y, 1, 0, 0, Height,
    13141315    HGrSystem.Data.Canvas.Pixels[187, 137 + Kind], Brightness);
     1316end;
     1317
     1318procedure UnderlinedTitleValue(Canvas: TCanvas; Title, Value: string; X, Y, Width: Integer);
     1319begin
     1320  DLine(Canvas, X, X + Width, Y + 19, MainTexture.clBevelLight, MainTexture.clBevelShade);
     1321  RisedTextOut(Canvas, X, Y, Title);
     1322  RisedTextOut(Canvas, X + Width - BiColorTextWidth(Canvas, Value), Y, Value);
    13151323end;
    13161324
Note: See TracChangeset for help on using the changeset viewer.