DevExpr TcxLabel not skinned like TsLabel

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #36213
    HeDiBo
    Participant

    Comparing the looks of a skinned TcxLabel to the native TsLabel component a number of differences appears.

    In the skin Cappucino the TcxLabel looks better, because it's brighter than TsLabel

    [attachment=6790:DevExprLabel1.jpg]

    In the Moonlight skin the DevExpr label is hardly visible:

    [attachment=6791:DevExprLabel2.jpg]

    Maybe a different algorithm is needed for painting TcxLabels?

    This is the test project: [attachment=6792:DevExpLabels.zip]

    #52219
    Support
    Keymaster

    Hello!

    cxLabel uses this code for a color receiving:

    Code:
    procedure TcxContainer.GetColorSettingsByPainter(out ABackground, ATextColor: TColor);
    begin
    ATextColor := clDefault;
    ABackground := clDefault;
    if ViewInfo.UseSkins then
    begin
    if not IsStyleAssigned(csvTextColor) then
    ATextColor := ViewInfo.Painter.DefaultEditorTextColorEx(GetEditStateColorKind);
    if not (ParentColor or IsStyleAssigned(csvColor)) then
    ABackground := ViewInfo.Painter.DefaultEditorBackgroundColorEx(GetEditStateColorKind);
    end;
    end;

    I think, it's not right, I can't control it in the DefaultEditorTextColorEx function, because this function used in all DevExpress Editors also.

    #52221
    HeDiBo
    Participant
    'Support' wrote:

    I think, it's not right, I can't control it in the DefaultEditorTextColorEx function, because this function used in all DevExpress Editors also.

    I understand, it's problematic. Just use TsLabel I suppose. But in that case, shouldn't some of the skins have brighter TsLabel font colors? This is particularly true for Capuccino, DarkMetro, Matrix (even edit texts don't look bright enough), Nautilus (labels should be bright, not dark), Rhombus (again labels should be bright, not dark), Steam, Terminal4Bit (both labels and edits) and WOT (labels should be bright, not dark). Or can I do something about that myself?

    I'm always using low brightness on my monitor, because if you stare at it all day your eyes get really tired from very bright colors. I think the alpha skins should also look good in lower brightness conditions. With the current color sets some texts are hardly readable.

    Hope you had a nice vacation? Welcome back.

    Vr gr ;-}

    Dick

    #52286
    Support
    Keymaster

    Thank you.

    Label and EditControls uses common function for a color receiving and I can't change that.

    Using of other labels will be better, I think. And you can play with Brightness value in SkinManager.

    #52290
    HeDiBo
    Participant
    'Support' wrote:

    Label and EditControls uses common function for a color receiving and I can't change that.

    I'm not sure what you mean. In this picture:

    [attachment=6862:LabelBrightness.jpg]

    isn't the TsLabel color much dimmer than the TsEdit color above it?

    #52294
    Support
    Keymaster

    I wrote about cxLabel, this control has same font color as edit control.

    #52295
    HeDiBo
    Participant
    'Support' wrote:

    I wrote about cxLabel, this control has same font color as edit control.

    I see, it was a misunderstanding.

    I do not like the skinning of TsLabel for the dark skins mentioned above. It makes the text almost unreadable if your monitor is set to low brightness.

    But I'll start a new topic on this subject.

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.