more svg icons

This commit is contained in:
Garux
2025-09-16 19:36:05 +05:00
parent 009436f9d6
commit c9b618c7e8
4 changed files with 35 additions and 8 deletions
+5 -4
View File
@@ -40,6 +40,7 @@
#include "gtkutil/idledraw.h"
#include "gtkutil/accelerator.h"
#include "gtkutil/guisettings.h"
#include "gtkutil/image.h"
#include "treemodel.h"
@@ -212,10 +213,10 @@ protected:
};
void searchEntrySetModeIcon( QAction *action, bool search_from_start ){
action->setIcon( QApplication::style()->standardIcon(
action->setIcon( new_local_icon(
search_from_start
? QStyle::StandardPixmap::SP_CommandLink
: QStyle::StandardPixmap::SP_FileDialogContentsView ) );
? "search_from_start.png"
: "search.png" ) );
}
/* search */
@@ -306,7 +307,7 @@ void EntityList_constructWindow( QWidget* main_window ){
entry->setClearButtonEnabled( true );
entry->setFocusPolicy( Qt::FocusPolicy::ClickFocus );
QAction *action = entry->addAction( QApplication::style()->standardIcon( QStyle::StandardPixmap::SP_CommandLink ), QLineEdit::LeadingPosition );
QAction *action = entry->addAction( QIcon(), QLineEdit::LeadingPosition );
searchEntrySetModeIcon( action, getEntityList().m_search_from_start );
action->setToolTip( "toggle match mode ( start / any position )" );
+4 -4
View File
@@ -1661,10 +1661,10 @@ protected:
};
void TextureBrowser_filterSetModeIcon( QAction *action ){
action->setIcon( QApplication::style()->standardIcon(
action->setIcon( new_local_icon(
g_TextureBrowser_filter_searchFromStart
? QStyle::StandardPixmap::SP_CommandLink
: QStyle::StandardPixmap::SP_FileDialogContentsView ) );
? "search_from_start.png"
: "search.png" ) );
}
@@ -1796,7 +1796,7 @@ QWidget* TextureBrowser_constructWindow( QWidget* toplevel ){
entry->setClearButtonEnabled( true );
entry->setFocusPolicy( Qt::FocusPolicy::ClickFocus );
QAction *action = g_TexBro.m_filter_action = entry->addAction( QApplication::style()->standardIcon( QStyle::StandardPixmap::SP_CommandLink ), QLineEdit::LeadingPosition );
QAction *action = g_TexBro.m_filter_action = entry->addAction( QIcon(), QLineEdit::LeadingPosition );
TextureBrowser_filterSetModeIcon( action );
action->setToolTip( "toggle match mode ( start / any position )" );
+17
View File
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 27.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 128 128" enable-background="new 0 0 128 128" xml:space="preserve">
<g>
<g>
<path fill="#C0C0C0" d="M85.5,0c2.36,0.41,4.74,0.73,7.08,1.26c17.68,4,31.64,18.81,34.69,36.73c0.26,1.5,0.49,3.01,0.73,4.52
c0,2.33,0,4.67,0,7c-0.07,0.23-0.18,0.46-0.2,0.69c-1.22,12.33-6.53,22.55-15.82,30.73c-13.79,12.14-34.8,14.63-51.03,6
c-2.48-1.32-4.83-2.9-7.32-4.41c-3.2,3.28-6.47,6.63-9.7,9.94c0.59,1.2,1.27,2.45,1.83,3.74c0.63,1.47,0.4,2.68-0.85,3.91
C35.57,109.36,26.29,118.69,17,128c-0.67,0-1.33,0-2,0c-5.49-2.32-9.66-6.2-12.94-11.08C1.24,115.7,0.68,114.31,0,113
c0-0.67,0-1.33,0-2c0.37-0.38,0.73-0.77,1.11-1.14c8.95-8.96,17.92-17.89,26.84-26.88c1.11-1.11,2.26-1.38,3.61-0.82
c1.41,0.58,2.76,1.31,4.06,1.94c3.26-3.26,6.56-6.55,9.9-9.89c-0.1-0.16-0.24-0.41-0.4-0.64c-7.79-10.71-10.61-22.6-8.39-35.66
C39.76,20.08,53.8,5.25,71.42,1.26C73.75,0.73,76.14,0.41,78.5,0C80.83,0,83.17,0,85.5,0z M118,45.98c0-19.9-16.16-36-36.13-35.98
C62.08,10.01,45.98,26.21,46,46.11C46.01,65.97,62.12,82,82.06,82C101.92,82,118,65.88,118,45.98z"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 27.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 128 128" enable-background="new 0 0 128 128" xml:space="preserve">
<path fill="#C0C0C0" d="M24,120h16c4.42,0,8-3.57,8-8s-3.58-8-8-8H24c-4.42,0-8-3.58-8-8V32c0-4.42,3.58-8,8-8h16c4.42,0,8-3.58,8-8
s-3.58-8-8-8H24C10.75,8,0,18.75,0,32v64C0,109.25,10.75,120,24,120z M126.2,59.62l-36.03-34c-1.74-1.64-4.3-2.09-6.5-1.15
c-2.2,0.95-3.63,3.12-3.63,5.51l-0.02,18l-32,0c-4.42,0-8.01,3.58-8.01,8v16c0,4.42,3.58,8,8.01,8l32,0l0.02,17.78
c0,2.39,1.43,4.56,3.63,5.51c2.2,0.95,4.76,0.5,6.5-1.15l36.03-34C128.6,66.1,128.6,61.9,126.2,59.62z"/>
</svg>

After

Width:  |  Height:  |  Size: 822 B