Skip to content

Commit

Permalink
vkconfig3: Update spec links
Browse files Browse the repository at this point in the history
Change-Id: I3ff83852fabe4870c6f66159e1c9afa54df095a7
  • Loading branch information
christophe-lunarg committed Jan 23, 2025
1 parent 45f16ea commit 8768ed1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 32 deletions.
34 changes: 5 additions & 29 deletions vkconfig_gui/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
<enum>QTabWidget::Rounded</enum>
</property>
<property name="currentIndex">
<number>3</number>
<number>4</number>
</property>
<widget class="QWidget" name="tab_configurations">
<attribute name="title">
Expand Down Expand Up @@ -1766,7 +1766,7 @@
<number>7</number>
</property>
<item>
<widget class="QLabel" name="documentation_spec0">
<widget class="QLabel" name="documentation_spec_html">
<property name="font">
<font>
<family>Arial</family>
Expand All @@ -1776,7 +1776,7 @@
</font>
</property>
<property name="text">
<string>Vulkan 1.3 Core API + all published: &lt;a style=&quot;color:%s;&quot; href=&quot;https://registry.khronos.org/vulkan/specs/1.3-extensions/html/index.html&quot;&gt;Chunked HTML&lt;/a&gt;, &lt;a style=&quot;color:%s;&quot; href=&quot;https://registry.khronos.org/vulkan/specs/1.3-extensions/pdf/vkspec.pdf&quot;&gt;PDF&lt;/a&gt;, &lt;a style=&quot;color:%s;&quot; href=&quot;https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html&quot;&gt;Single-file HTML&lt;/a&gt;</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;a href=&quot;https://registry.khronos.org/vulkan/specs/latest/html/vkspec.html&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;Latest Single-file HTML&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="textFormat">
<enum>Qt::RichText</enum>
Expand All @@ -1790,7 +1790,7 @@
</widget>
</item>
<item>
<widget class="QLabel" name="documentation_spec1">
<widget class="QLabel" name="documentation_spec_pdf">
<property name="font">
<font>
<family>Arial</family>
Expand All @@ -1800,31 +1800,7 @@
</font>
</property>
<property name="text">
<string>Vulkan 1.3 Core API: &lt;a style=&quot;color:%s;&quot; href=&quot;https://registry.khronos.org/vulkan/specs/1.3/html/index.html&quot;&gt;Chunked HTML&lt;/a&gt;, &lt;a style=&quot;color:%s;&quot; href=&quot;https://registry.khronos.org/vulkan/specs/1.3/pdf/vkspec.pdf&quot;&gt;PDF&lt;/a&gt;, &lt;a style=&quot;color:%s;&quot; href=&quot;https://registry.khronos.org/vulkan/specs/1.3/html/vkspec.html&quot;&gt;Single-file HTML&lt;/a&gt;</string>
</property>
<property name="textFormat">
<enum>Qt::RichText</enum>
</property>
<property name="openExternalLinks">
<bool>true</bool>
</property>
<property name="textInteractionFlags">
<set>Qt::TextBrowserInteraction</set>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="documentation_spec2">
<property name="font">
<font>
<family>Arial</family>
<pointsize>10</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>Vulkan 1.3 Core API + Ratified Extensions: &lt;a style=&quot;color:%s;&quot; href=&quot;https://registry.khronos.org/vulkan/specs/1.3-khr-extensions/html/index.html&quot;&gt;Chunked HTML&lt;/a&gt;, &lt;a style=&quot;color:%s;&quot; href=&quot;https://registry.khronos.org/vulkan/specs/1.3-khr-extensions/pdf/vkspec.pdf&quot;&gt;PDF&lt;/a&gt;, &lt;a style=&quot;color:%s;&quot; href=&quot;https://registry.khronos.org/vulkan/specs/1.3-khr-extensions/html/vkspec.html&quot;&gt;Single-file HTML&lt;/a&gt;</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;a href=&quot;https://registry.khronos.org/vulkan/specs/latest/pdf/vkspec.pdf&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;Latest PDF&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="textFormat">
<enum>Qt::RichText</enum>
Expand Down
5 changes: 2 additions & 3 deletions vkconfig_gui/tab_documentation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,8 @@ TabDocumentation::TabDocumentation(MainWindow &window, std::shared_ptr<Ui::MainW
QPalette palette = this->ui->documentation_spec->palette();
QColor color = palette.color(QPalette::Text);

::UpdateColor3(this->ui->documentation_spec0, color);
::UpdateColor3(this->ui->documentation_spec1, color);
::UpdateColor3(this->ui->documentation_spec2, color);
::UpdateColor1(this->ui->documentation_spec_html, color);
::UpdateColor1(this->ui->documentation_spec_pdf, color);

::UpdateColor1(this->ui->documentation_doc0, color);
::UpdateColor1(this->ui->documentation_doc1, color);
Expand Down

0 comments on commit 8768ed1

Please sign in to comment.