Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Change color for header and for time (Read 2924 times)
AncaZ
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 21
Joined: Feb 16th, 2017
Change color for header and for time
Feb 16th, 2017 at 9:23am
Print Post  
Hello,
We are evaluating JPlanner for why how we can use and adapt it to the design we need.
Does someone know how we can change the background color for header for an appointment from grey to white? And the background color for the "column" that represents the time?

Thank you.

  

appointment.png ( 9 KB | 145 Downloads )
appointment.png
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Change color for header and for time
Reply #1 - Feb 16th, 2017 at 10:03am
Print Post  
Hi,

To change the background of the all-day items in a Timetable view, use the Style.Brush and SelectedItemStyle.Brush properties of the ItemSettings class:

Code
Select All
calendar.getItemSettings().getStyle().setBrush(Brushes.White);
calendar.getItemSettings().getSelectedItemStyle().setBrush(Brushes.White); 


To change the background of the timeline header, use the TimelineStyle.HeaderBrush property of the TimetableSettings class and to change the background of the column hedaer, use Style.HeaderBrush:

Code
Select All
calendar.getTimetableSettings().getStyle().setHeaderBrush(Brushes.White);
calendar.getTimetableSettings().getTimelineStyle().setHeaderBrush(Brushes.White); 


Regards,
Meppy
  
Back to top
 
IP Logged
 
AncaZ
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 21
Joined: Feb 16th, 2017
Re: Change color for header and for time
Reply #2 - Feb 16th, 2017 at 10:14am
Print Post  
It works Smiley
Thanks a lot Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint