docs: def setCurrentState(self, state):
          """
          Sets the current state for this edit to the inputed state.
          
          :param      state | <XLineEdit.State>
          """
          self._currentState = state
          
          palette = self.palette()
          if state == XLineEdit.State.Normal:
              palette = QApplication.instance().palette()
          
          elif state == XLineEdit.State.Failed:
              palette.setColor(palette.Base, QColor('#ffc9bc'))
              palette.setColor(palette.Text, QColor('#aa2200'))
              palette.setColor(palette.Disabled, palette.Text, QColor('#e58570'))
          
          elif state == XLineEdit.State.Passed:
              palette.setColor(palette.Base, QColor('#d1ffd1'))
              palette.setColor(palette.Text, QColor('#00aa00'))
              palette.setColor(palette.Disabled, palette.Text, QColor('#75e575'))
          
          self._hintColor = palette.color(palette.Disabled, palette.Text)
          self.setPalette(palette)