Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isToday text color issue *FIX* #120

Open
salvaterra opened this issue Apr 22, 2020 · 2 comments
Open

isToday text color issue *FIX* #120

salvaterra opened this issue Apr 22, 2020 · 2 comments

Comments

@salvaterra
Copy link

salvaterra commented Apr 22, 2020

Fix suggestion for out of the range cells being colored with cellTextColorToday color. Some cells that are not today are being "randomly" colored (more analysis needed). Obviously, with the fix, if today is out of the range it will not be colored.

func updateTextColor() {
    if isSelected {
        self.textLabel.textColor = style.cellSelectedTextColor
    }
    /*else if isToday {
        self.textLabel.textColor = style.cellTextColorToday
        //print(self.textLabel.text!)
    }*/
    else if isOutOfRange {
        self.textLabel.textColor = style.cellColorOutOfRange
    }
    //added
    else if isToday {
        self.textLabel.textColor = style.cellTextColorToday
    }
    else if isAdjacent {
        self.textLabel.textColor = style.cellColorAdjacent
    }
    else if isWeekend {
        self.textLabel.textColor = style.cellTextColorWeekend
    }
    else {
        self.textLabel.textColor = style.cellTextColorDefault
    }
}
@tomisykora
Copy link

@salvaterra we were facing the same issue and this helped us, thanks!

@ismael9291
Copy link

I am seeing this issue on 1.8.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants