parameters: ()
return_statement: return attentionColorString
docstring: A shade of orange, adapted to darkmode if possible. Targets a minimum 7:1 contrast ratio.
docstring_summary: A shade of orange, adapted to darkmode if possible. Targets a minimum 7:1 contrast ratio.
docstring_tokens: A shade of orange adapted to darkmode if possible . Targets a minimum 7 : 1 contrast ratio .
function: def attention_color_string() -> str:
      """A shade of orange, adapted to darkmode if possible. Targets a minimum 7:1 contrast ratio."""
  
      attentionColorString = "rgb(255,149,0)"
      if hasattr(QtWidgets.QApplication.instance(), "styleSheet"):
          # Qt 5.9 doesn't give a QApplication instance, so can't give the stylesheet info
          if "dark" in QtWidgets.QApplication.instance().styleSheet().lower():
              attentionColorString = "rgb(255,179,64)"
          else:
              attentionColorString = "rgb(255,149,0)"
      return attentionColorString
function_tokens: def attention_color_string ( ) -> str : attentionColorString = "rgb(255,149,0)" if hasattr ( QtWidgets . QApplication . instance ( ) , "styleSheet" ) : # Qt 5.9 doesn't give a QApplication instance, so can't give the stylesheet info if "dark" in QtWidgets . QApplication . instance ( ) . styleSheet ( ) . lower ( ) : attentionColorString = "rgb(255,179,64)" else : attentionColorString = "rgb(255,149,0)" return attentionColorString