private void colorGrid() {
		m_layeredPane.resetColors();
		int day = m_currentWeek.getDayOfWeek().getValue(); // 1-7
		// plan before / after
		int startHour = m_appSettings.getStartPlanningTime().getHour();
		int endHour = m_appSettings.getEndPlanningTime().getHour();
		int startMinutes = m_appSettings.getStartPlanningTime().getMinute();
		int endMinutes = m_appSettings.getEndPlanningTime().getMinute();

		for (int i = 0; i < 7; i++) {
			m_layeredPane.setColoredArea(BackgroundColor.RED, i, 0, 0, startHour, startMinutes);
			m_layeredPane.setColoredArea(BackgroundColor.RED, i, endHour, endMinutes, 23, 59);
			if (!m_appSettings.isPlannableOnWeekends() && (day + i - 1) % 7 >= 5) // if weekend and no planning on weekends
				m_layeredPane.setColoredArea(BackgroundColor.GRAY, i, 0, 0, 23, 59);
		}
		// plan exceptions
		for (UnplannablePeriod period : m_appSettings.getUnplannablePeriods().getList()) {
			for (int i = 0; i < 7; i++)
				if (period.isDayRepeated((day + i) % 7)) {
					int startPHour = period.getStart().getHour();
					int startPMinute = period.getStart().getMinute();
					int endPHour = period.getEnd().getHour();
					int endPMinute = period.getEnd().getMinute();
					m_layeredPane.setColoredArea(BackgroundColor.RED, i, startPHour, startPMinute, endPHour, endPMinute);
				}
		}
	}