Home Forums FlexGanttFX Weekends are still highlighted on timeline even though all calendars are cleared

Viewing 2 reply threads
  • Author
    Posts
    • gmoubarak
      Participant
      Post count: 9
      #13068 |

      Hi,
      Even when we clear the calendars from dateline and the gantt graphics as follows:
      gantt.getGraphics().getCalendars().clear();
      gantt.getTimeline().getDateline().getCalendars().clear();
      we notice that the Saturdays and Sundays on the timeline are still highlighted.

      Am I missing the calendars controlling those highlights?

    • Dirk Lemmermann
      Keymaster
      Post count: 78
      #13069 |

      The highlights are caused by CSS styling. Those days have .saturday and .sunday styles assigned to them. Those styles are defined in dateline.css:

      .scale-bottom > .saturday, .scale-bottom > .sunday {
          -fx-background-color: rgba(0,0,0,0.1) ;
      }
      
      .scale-bottom > .saturday:hover, .scale-bottom > .sunday:hover {
          -fx-background-color: rgba(0,0,0,0.1) ;
      }

       

    • Dirk Lemmermann
      Keymaster
      Post count: 78
      #13070 |

      In version 1.8 I will add weekend setter methods on the DatelineModel (ChronoUnitDatelineModel) to make it easier to modify this.

Viewing 2 reply threads
  • You must be logged in to reply to this topic.