mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-11-04 01:32:42 +01:00 
			
		
		
		
	Add disabled bluetooth style
Allow to set a different style if the bluetooth adapter is disabled.
This commit is contained in:
		@@ -12,6 +12,11 @@ auto waybar::modules::Bluetooth::update() -> void {
 | 
			
		||||
 | 
			
		||||
  label_.set_markup(
 | 
			
		||||
      fmt::format(format_, fmt::arg("status", status), fmt::arg("icon", getIcon(0, status))));
 | 
			
		||||
  if (status == "disabled") {
 | 
			
		||||
    label_.get_style_context()->add_class("disabled");
 | 
			
		||||
  } else {
 | 
			
		||||
    label_.get_style_context()->remove_class("disabled");
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  if (tooltipEnabled()) {
 | 
			
		||||
    if (config_["tooltip-format"].isString()) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user