mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	ssd: use dynamic titlebar height based on font size and padding
This commit is contained in:
		
							parent
							
								
									3bb44fc9f2
								
							
						
					
					
						commit
						e4f1f9a975
					
				
					 9 changed files with 23 additions and 18 deletions
				
			
		| 
						 | 
				
			
			@ -8,6 +8,7 @@
 | 
			
		|||
 | 
			
		||||
#include "common/buf.h"
 | 
			
		||||
#include "config/libinput.h"
 | 
			
		||||
#include "theme.h"
 | 
			
		||||
 | 
			
		||||
struct rcxml {
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -29,6 +30,8 @@ struct rcxml {
 | 
			
		|||
	int font_size_activewindow;
 | 
			
		||||
	int font_size_menuitem;
 | 
			
		||||
	int font_size_osd;
 | 
			
		||||
	/* Pointer to current theme */
 | 
			
		||||
	struct theme *theme;
 | 
			
		||||
 | 
			
		||||
	/* keyboard */
 | 
			
		||||
	int repeat_rate;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,7 +5,6 @@
 | 
			
		|||
#include "buffer.h"
 | 
			
		||||
#include <wlr/util/box.h>
 | 
			
		||||
 | 
			
		||||
#define SSD_HEIGHT 26    /* TODO: use theme->title_height */
 | 
			
		||||
#define BUTTON_COUNT 4
 | 
			
		||||
#define BUTTON_WIDTH 26
 | 
			
		||||
#define EXTENDED_AREA 8
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue