mirror of
				https://github.com/Rockbox/rockbox.git
				synced 2025-10-26 23:36:37 -04:00 
			
		
		
		
	Theme Editor: Fixed bug that caused WPS skins without SBS parents not to render their backdrops correctly. Added support for RTL-dependant text alignment
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27295 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
		
							parent
							
								
									db1b823ac3
								
							
						
					
					
						commit
						71b561e3df
					
				
					 3 changed files with 22 additions and 2 deletions
				
			
		|  | @ -46,7 +46,6 @@ DeviceState::DeviceState(QWidget *parent) : | |||
| 
 | ||||
|     /* Loading the tabs */ | ||||
|     QScrollArea* currentArea = 0; | ||||
|     QHBoxLayout* subLayout; | ||||
|     QWidget* panel; | ||||
| 
 | ||||
|     QFile fin(":/resources/deviceoptions"); | ||||
|  |  | |||
|  | @ -616,6 +616,26 @@ bool ParseTreeNode::execTag(const RBRenderInfo& info, RBViewport* viewport) | |||
|             /* %ar */ | ||||
|             viewport->alignText(RBViewport::Right); | ||||
|             return true; | ||||
| 
 | ||||
|         case 'x': | ||||
|             /* %ax */ | ||||
|             return true; | ||||
| 
 | ||||
|         case 'L': | ||||
|             /* %aL */ | ||||
|             if(info.device()->data("rtl").toBool()) | ||||
|                 viewport->alignText(RBViewport::Right); | ||||
|             else | ||||
|                 viewport->alignText(RBViewport::Left); | ||||
|             return true; | ||||
| 
 | ||||
|         case 'R': | ||||
|             /* %aR */ | ||||
|             if(info.device()->data("rtl").toBool()) | ||||
|                 viewport->alignText(RBViewport::Left); | ||||
|             else | ||||
|                 viewport->alignText(RBViewport::Right); | ||||
|             return true; | ||||
|         } | ||||
| 
 | ||||
|         return false; | ||||
|  | @ -811,7 +831,7 @@ bool ParseTreeNode::execTag(const RBRenderInfo& info, RBViewport* viewport) | |||
|         case '\0': | ||||
|             /* %X */ | ||||
|             filename = QString(element->params[0].data.text); | ||||
|             if(info.sbsScreen()) | ||||
|             if(info.sbsScreen() && info.screen()->parentItem()) | ||||
|                 info.sbsScreen()->setBackdrop(filename); | ||||
|             else | ||||
|                 info.screen()->setBackdrop(filename); | ||||
|  |  | |||
|  | @ -37,6 +37,7 @@ remotewidth ; Remote Width ; spin(0,800) ; 100 | |||
| remoteheight ; Remote Height ; spin(0,800); 50 | ||||
| showviewports ; Show Viewports ; check ; false | ||||
| rendersbs ; Render SBS If Available ; check ; true | ||||
| rtl ; Right-To-Left Language ; check ; false | ||||
| 
 | ||||
| [ID3 Info] | ||||
| ia ; Artist ; text ; Current Artist | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue