mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-24 06:36:08 +00:00
Add manual fixup of <img> tags in richtext labels, to set to @2x version
This commit is contained in:
@@ -65,6 +65,9 @@ void CaptureDialog::initWarning(RDLabel *warning)
|
||||
if(!warning)
|
||||
return;
|
||||
|
||||
if(warning->devicePixelRatio() >= 2)
|
||||
warning->setText(warning->text().replace(lit(".png"), lit("@2x.png")));
|
||||
|
||||
QPalette pal = warning->palette();
|
||||
|
||||
QColor base = pal.color(QPalette::ToolTipBase);
|
||||
|
||||
@@ -299,14 +299,11 @@
|
||||
<enum>QFrame::Box</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><table><tr><td valign="middle"><img src=":/information.png"/></td><td><p>Warning: Vulkan capture is not configured.<br/>Click here to set up Vulkan capture.</p></td></tr></table></body></html></string>
|
||||
<string><html><head/><body><table><tr><td valign="middle"><img width="16" src=":/information.png"/></td><td><p>Warning: Vulkan capture is not configured.<br/>Click here to set up Vulkan capture.</p></td></tr></table></body></html></string>
|
||||
</property>
|
||||
<property name="textFormat">
|
||||
<enum>Qt::RichText</enum>
|
||||
</property>
|
||||
<property name="pixmap">
|
||||
<pixmap resource="../../Resources/resources.qrc">:/information.png</pixmap>
|
||||
</property>
|
||||
<property name="margin">
|
||||
<number>3</number>
|
||||
</property>
|
||||
@@ -321,14 +318,11 @@
|
||||
<enum>QFrame::Box</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><table><tr><td valign="middle"><img src=":/information.png"/></td><td valign="middle"><p>Scanning Android application for RenderDoc support...<br/></p></td></tr></table></body></html></string>
|
||||
<string><html><head/><body><table><tr><td valign="middle"><img width="16" src=":/information.png"/></td><td valign="middle"><p>Scanning Android application for RenderDoc support...<br/></p></td></tr></table></body></html></string>
|
||||
</property>
|
||||
<property name="textFormat">
|
||||
<enum>Qt::RichText</enum>
|
||||
</property>
|
||||
<property name="pixmap">
|
||||
<pixmap resource="../../Resources/resources.qrc">:/information.png</pixmap>
|
||||
</property>
|
||||
<property name="margin">
|
||||
<number>3</number>
|
||||
</property>
|
||||
@@ -343,14 +337,11 @@
|
||||
<enum>QFrame::Box</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><table><tr><td valign="middle"><img src=":/information.png"/></td><td><p>Warning: Android application not set up for RenderDoc capture.<br/>Click here for ways to fix this.</p></td></tr></table></body></html></string>
|
||||
<string><html><head/><body><table><tr><td valign="middle"><img width="16" src=":/information.png"/></td><td><p>Warning: Android application not set up for RenderDoc capture.<br/>Click here for ways to fix this.</p></td></tr></table></body></html></string>
|
||||
</property>
|
||||
<property name="textFormat">
|
||||
<enum>Qt::RichText</enum>
|
||||
</property>
|
||||
<property name="pixmap">
|
||||
<pixmap resource="../../Resources/resources.qrc">:/information.png</pixmap>
|
||||
</property>
|
||||
<property name="margin">
|
||||
<number>3</number>
|
||||
</property>
|
||||
|
||||
Reference in New Issue
Block a user