mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-10-31 16:02:43 +01:00 
			
		
		
		
	Allow rotating label contents by specifying a new "rotate" property in the label config
This commit is contained in:
		| @@ -16,6 +16,11 @@ waybar::ALabel::ALabel(const Json::Value& config, const std::string& format, uin | ||||
|     label_.set_max_width_chars(config_["max-length"].asUInt()); | ||||
|     label_.set_ellipsize(Pango::EllipsizeMode::ELLIPSIZE_END); | ||||
|   } | ||||
|  | ||||
|   if (config_["rotate"].isUInt()) { | ||||
| 	label_.set_angle(config["rotate"].asUInt()); | ||||
|   } | ||||
|  | ||||
|   if (config_["format-alt"].isString()) { | ||||
|     event_box_.add_events(Gdk::BUTTON_PRESS_MASK); | ||||
|     event_box_.signal_button_press_event().connect(sigc::mem_fun(*this, &ALabel::handleToggle)); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jon Valdés
					Jon Valdés