Esempio n. 1
0
    def color(self) -> curses.color_pair:
        """An initialized ncurses color pair associated with the type of file
        for this Item.
        """
        if self.selected:
            return Colors.black_on_white()

        if self._path.is_dir():
            return Colors.blue_on_black()

        return Colors.default()