mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-11-04 09:42:42 +01:00 
			
		
		
		
	add layout as class to language module
This commit is contained in:
		@@ -120,7 +120,9 @@ auto Language::update() -> void {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
auto Language::set_current_layout(std::string current_layout) -> void {
 | 
			
		||||
  label_.get_style_context()->remove_class(layout_.short_name);
 | 
			
		||||
  layout_ = layouts_map_[current_layout];
 | 
			
		||||
  label_.get_style_context()->add_class(layout_.short_name);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
auto Language::init_layouts_map(const std::vector<std::string>& used_layouts) -> void {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user