mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
Add icons for texture viewer pixel history/debug buttons
This commit is contained in:
@@ -74,9 +74,11 @@
|
||||
RESOURCE_DEF(page_white_link, "page_white_link.png") \
|
||||
RESOURCE_DEF(page_white_stack, "page_white_stack.png") \
|
||||
RESOURCE_DEF(paste, "paste.png") \
|
||||
RESOURCE_DEF(pixel_history, "pixel_history.png") \
|
||||
RESOURCE_DEF(plugin, "plugin.png") \
|
||||
RESOURCE_DEF(plugin_add, "plugin_add.png") \
|
||||
RESOURCE_DEF(save, "save.png") \
|
||||
RESOURCE_DEF(text_add, "text_add.png") \
|
||||
RESOURCE_DEF(tick, "tick.png") \
|
||||
RESOURCE_DEF(time, "time.png") \
|
||||
RESOURCE_DEF(timeline_marker, "timeline_marker.png") \
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 803 B |
Binary file not shown.
|
After Width: | Height: | Size: 2.0 KiB |
@@ -105,12 +105,16 @@
|
||||
<file>page_white_stack@2x.png</file>
|
||||
<file>paste.png</file>
|
||||
<file>paste@2x.png</file>
|
||||
<file>pixel_history.png</file>
|
||||
<file>pixel_history@2x.png</file>
|
||||
<file>plugin.png</file>
|
||||
<file>plugin@2x.png</file>
|
||||
<file>plugin_add.png</file>
|
||||
<file>plugin_add@2x.png</file>
|
||||
<file>save.png</file>
|
||||
<file>save@2x.png</file>
|
||||
<file>text_add.png</file>
|
||||
<file>text_add@2x.png</file>
|
||||
<file>tick.png</file>
|
||||
<file>tick@2x.png</file>
|
||||
<file>time.png</file>
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.6 KiB |
@@ -27,6 +27,7 @@
|
||||
#include <math.h>
|
||||
#include <QAction>
|
||||
#include <QMenu>
|
||||
#include "Code/Resources.h"
|
||||
#include "toolwindowmanager/ToolWindowManager.h"
|
||||
#include "ui_PixelHistoryView.h"
|
||||
|
||||
@@ -838,6 +839,8 @@ void PixelHistoryView::on_events_customContextMenuRequested(const QPoint &pos)
|
||||
|
||||
QAction jumpAction(tr("&Go to primitive %1 at Event %2").arg(tag.primitive).arg(tag.eventId), this);
|
||||
|
||||
jumpAction.setIcon(Icons::find());
|
||||
|
||||
QString debugText;
|
||||
|
||||
if(tag.primitive == ~0U)
|
||||
@@ -858,6 +861,8 @@ void PixelHistoryView::on_events_customContextMenuRequested(const QPoint &pos)
|
||||
|
||||
QAction debugAction(debugText, this);
|
||||
|
||||
debugAction.setIcon(Icons::wrench());
|
||||
|
||||
contextMenu.addAction(&debugAction);
|
||||
|
||||
if(!m_Ctx.APIProps().shaderDebugging)
|
||||
|
||||
@@ -1212,6 +1212,10 @@ See FAQ on "Gamma display of linear data"</string>
|
||||
<property name="text">
|
||||
<string>History</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../../Resources/resources.qrc">
|
||||
<normaloff>:/pixel_history.png</normaloff>:/pixel_history.png</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
@@ -1219,6 +1223,10 @@ See FAQ on "Gamma display of linear data"</string>
|
||||
<property name="text">
|
||||
<string>Debug</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../../Resources/resources.qrc">
|
||||
<normaloff>:/wrench.png</normaloff>:/wrench.png</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
|
||||
@@ -1930,8 +1930,12 @@ IF %ERRORLEVEL% NEQ 0 (echo ====================================================
|
||||
<Image Include="Resources\control_sample_blue.png" />
|
||||
<Image Include="Resources\control_start_blue%402x.png" />
|
||||
<Image Include="Resources\control_start_blue.png" />
|
||||
<Image Include="Resources\copy%402x.png" />
|
||||
<Image Include="Resources\copy.png" />
|
||||
<Image Include="Resources\cross%402x.png" />
|
||||
<Image Include="Resources\cross.png" />
|
||||
<Image Include="Resources\cut%402x.png" />
|
||||
<Image Include="Resources\cut.png" />
|
||||
<Image Include="Resources\del%402x.png" />
|
||||
<Image Include="Resources\del.png" />
|
||||
<Image Include="Resources\disconnect%402x.png" />
|
||||
@@ -1969,10 +1973,18 @@ IF %ERRORLEVEL% NEQ 0 (echo ====================================================
|
||||
<Image Include="Resources\page_white_link.png" />
|
||||
<Image Include="Resources\page_white_stack%402x.png" />
|
||||
<Image Include="Resources\page_white_stack.png" />
|
||||
<Image Include="Resources\paste%402x.png" />
|
||||
<Image Include="Resources\paste.png" />
|
||||
<Image Include="Resources\pixel_history%402x.png" />
|
||||
<Image Include="Resources\pixel_history.png" />
|
||||
<Image Include="Resources\plugin%402x.png" />
|
||||
<Image Include="Resources\plugin.png" />
|
||||
<Image Include="Resources\plugin_add%402x.png" />
|
||||
<Image Include="Resources\plugin_add.png" />
|
||||
<Image Include="Resources\save%402x.png" />
|
||||
<Image Include="Resources\save.png" />
|
||||
<Image Include="Resources\text_add%402x.png" />
|
||||
<Image Include="Resources\text_add.png" />
|
||||
<Image Include="Resources\tick%402x.png" />
|
||||
<Image Include="Resources\tick.png" />
|
||||
<Image Include="Resources\time%402x.png" />
|
||||
|
||||
@@ -1846,6 +1846,42 @@
|
||||
<Image Include="Resources\arrow_refresh.png">
|
||||
<Filter>Resources\Files</Filter>
|
||||
</Image>
|
||||
<Image Include="Resources\copy.png">
|
||||
<Filter>Resources\Files</Filter>
|
||||
</Image>
|
||||
<Image Include="Resources\copy%402x.png">
|
||||
<Filter>Resources\Files</Filter>
|
||||
</Image>
|
||||
<Image Include="Resources\cut.png">
|
||||
<Filter>Resources\Files</Filter>
|
||||
</Image>
|
||||
<Image Include="Resources\cut%402x.png">
|
||||
<Filter>Resources\Files</Filter>
|
||||
</Image>
|
||||
<Image Include="Resources\paste.png">
|
||||
<Filter>Resources\Files</Filter>
|
||||
</Image>
|
||||
<Image Include="Resources\paste%402x.png">
|
||||
<Filter>Resources\Files</Filter>
|
||||
</Image>
|
||||
<Image Include="Resources\plugin.png">
|
||||
<Filter>Resources\Files</Filter>
|
||||
</Image>
|
||||
<Image Include="Resources\plugin%402x.png">
|
||||
<Filter>Resources\Files</Filter>
|
||||
</Image>
|
||||
<Image Include="Resources\text_add.png">
|
||||
<Filter>Resources\Files</Filter>
|
||||
</Image>
|
||||
<Image Include="Resources\text_add%402x.png">
|
||||
<Filter>Resources\Files</Filter>
|
||||
</Image>
|
||||
<Image Include="Resources\pixel_history.png">
|
||||
<Filter>Resources\Files</Filter>
|
||||
</Image>
|
||||
<Image Include="Resources\pixel_history%402x.png">
|
||||
<Filter>Resources\Files</Filter>
|
||||
</Image>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Natvis Include="python36.natvis" />
|
||||
|
||||
Reference in New Issue
Block a user