CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Theme and Colors

by etwoss » 24 Nov 2016 11:41

Hi

Just testing the demo of this component.

1) It look's to me the text is not in the same font as the Theme is
2) Can i change the color of the buttons?
3) the ÿou clicked the OK button in in green, dont' see this setting, it's based on Type as i can see , can i change this?

Code: Select all
procedure TIWForm1.JQNotyOkClick(Sender: TObject; AParams: TStringList);
begin
  JQNotificationNoty.JQNotificationNotyOptions.CloseNotification;
  JQNotificationNoty.JQNotificationNotyOptions.Buttons.Clear;
  JQNotificationNoty.JQNotificationNotyOptions.Type_:= jqnntSuccess;
  JQNotificationNoty.JQNotificationNotyOptions.Text:= 'You clicked "Ok" button!';
  JQNotificationNoty.JQNotificationNotyOptions.ShowNotification;
end;


Eric
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by assapan » 24 Nov 2016 16:42

Have a look in css/noty or css/freeow depending of which one you use
Want to visit Ardeche http://leclosdelarc.fr/index.php
The Pont d’Arc Cavern http://en.cavernedupontdarc.fr
Image
User avatar
assapan
 
Posts: 600
Joined: 16 Dec 2013 12:04
Location: France

by assapan » 24 Nov 2016 16:53

have a look also to plugin documentation and demo , right click on component "plugin documentation"
Want to visit Ardeche http://leclosdelarc.fr/index.php
The Pont d’Arc Cavern http://en.cavernedupontdarc.fr
Image
User avatar
assapan
 
Posts: 600
Joined: 16 Dec 2013 12:04
Location: France

by Alexander Bulei » 24 Nov 2016 17:44

Hi,

JQNotification component have own & independent styles...

Have a look in css/noty or css/freeow depending of which one you use


Exactly

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by etwoss » 25 Nov 2016 09:45

Hi

Thanks

I don't see anything easy to make the font the same as the font from the selected Theme of the other components, is there?

Trying to add a font:

Code: Select all
         this.$message.css({
            font-family: 'Arial, Helvetica, sans-serif',
            fontSize: '13px',


Can't get this working

Also copied default theme to theme.etw.js (no changes) and set theme to etw
Now the notification is not showed at all.


Eric
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by etwoss » 25 Nov 2016 12:15

Hi

Have a look in css/noty or css/freeow depending of which one you use


There is only a Button.cs nothing for the message

Eric
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by Alexander Bulei » 29 Nov 2016 19:26

Hi,

this.$message.css({
font-family: 'Arial, Helvetica, sans-serif',
fontSize: '13px',


It's JSON object...so should have camelCase property names or just as string:

Code: Select all
"font-family": 'Arial, Helvetica, sans-serif',


Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal


Return to JQNotification

cron

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.