Skip to content

Commit

Permalink
Merge pull request #1576 from matterhorn103/tool_icons
Browse files Browse the repository at this point in the history
Modern dark-mode and light-mode tool icons
  • Loading branch information
ghutchis authored Jan 18, 2024
2 parents 25ef157 + b00aa39 commit 14a7591
Show file tree
Hide file tree
Showing 40 changed files with 3,302 additions and 30 deletions.
376 changes: 376 additions & 0 deletions avogadro/qtplugins/aligntool/align_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
376 changes: 376 additions & 0 deletions avogadro/qtplugins/aligntool/align_light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion avogadro/qtplugins/aligntool/aligntool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ AlignTool::AlignTool(QObject* parent_)
m_alignType(0), m_axis(0)
{
m_activateAction->setText(tr("Align"));
m_activateAction->setIcon(QIcon(":/icons/align.png"));
m_activateAction->setIcon(QIcon(":/icons/align_light.svg"));
m_activateAction->setToolTip(
tr("Align Molecules\n\n"
"Left Mouse: \tSelect up to two atoms.\n"
Expand Down
4 changes: 2 additions & 2 deletions avogadro/qtplugins/aligntool/aligntool.qrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<RCC>
<qresource prefix="/icons">
<file>align.png</file>
<file>align@2x.png</file>
<file>align_light.svg</file>
<file>align_dark.svg</file>
</qresource>
</RCC>
146 changes: 146 additions & 0 deletions avogadro/qtplugins/bondcentrictool/bondcentric_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
146 changes: 146 additions & 0 deletions avogadro/qtplugins/bondcentrictool/bondcentric_light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion avogadro/qtplugins/bondcentrictool/bondcentrictool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ BondCentricTool::BondCentricTool(QObject* parent_)
m_planeSnapIncr(10.f), m_snapPlaneToBonds(true)
{
m_activateAction->setText(tr("Bond-Centric Manipulation"));
m_activateAction->setIcon(QIcon(":/icons/bondcentrictool.png"));
m_activateAction->setIcon(QIcon(":/icons/bondcentric_light.svg"));
m_activateAction->setToolTip(
tr("Bond Centric Manipulation Tool\n\n"
"Left Mouse: \tClick and drag to rotate the view.\n"
Expand Down
4 changes: 2 additions & 2 deletions avogadro/qtplugins/bondcentrictool/bondcentrictool.qrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<RCC>
<qresource prefix="/icons">
<file>bondcentrictool.png</file>
<file>bondcentrictool@2x.png</file>
<file>bondcentric_light.svg</file>
<file>bondcentric_dark.svg</file>
</qresource>
</RCC>
2 changes: 1 addition & 1 deletion avogadro/qtplugins/editor/editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Editor::Editor(QObject* parent_)
m_fixValenceLater(false), m_layerManager("Editor")
{
m_activateAction->setText(tr("Draw"));
m_activateAction->setIcon(QIcon(":/icons/editor.png"));
m_activateAction->setIcon(QIcon(":/icons/editor_light.svg"));
m_activateAction->setToolTip(
tr("Draw Tool\n\n"
"Left Mouse: \tClick and Drag to create Atoms and Bond\n"
Expand Down
4 changes: 2 additions & 2 deletions avogadro/qtplugins/editor/editor.qrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<RCC>
<qresource prefix="/icons">
<file>editor.png</file>
<file>editor@2x.png</file>
<file>editor_light.svg</file>
<file>editor_dark.svg</file>
</qresource>
</RCC>
Loading

0 comments on commit 14a7591

Please sign in to comment.