Adding icon.

This commit is contained in:
sergiotarxz 2024-03-02 12:35:43 +01:00
parent 94c4e93c0b
commit 6d305b55cc
3 changed files with 187 additions and 6 deletions

View File

@ -0,0 +1,167 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="512"
height="512"
viewBox="0 0 512 512"
version="1.1"
id="svg5"
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
sodipodi:docname="gemetool.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview7"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="px"
showgrid="false"
inkscape:zoom="1.5273438"
inkscape:cx="254.69054"
inkscape:cy="256"
inkscape:window-width="1920"
inkscape:window-height="1011"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" />
<defs
id="defs2">
<inkscape:perspective
sodipodi:type="inkscape:persp3d"
inkscape:vp_x="0 : 256 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_z="512 : 256 : 1"
inkscape:persp3d-origin="256 : 170.66667 : 1"
id="perspective6800" />
</defs>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<path
style="fill:#51d886;fill-opacity:1;stroke:#000000;stroke-width:1.384;stroke-opacity:0"
d="M 146.20716,129.57289 346.24553,126.01279 457.74425,249.00256 244.72635,453.19693 66.925831,249.75704 Z"
id="path236" />
<path
style="fill:#2cb964;fill-opacity:1;stroke:#000000;stroke-width:1.384;stroke-opacity:0"
d="m 181.51407,241.44502 62.20972,206.33503 72.52429,-207.02046 -21.68286,-112.41432 -86.05627,2.32225 z"
id="path1278" />
<path
style="fill:#94e5b4;fill-opacity:1;stroke:#000000;stroke-width:1.384;stroke-opacity:0"
d="m 318.06906,241.16113 137.31457,7.72634 -107.48081,-120.65217 -51.06906,0.54731 z"
id="path3923" />
<path
style="fill:#186335;fill-opacity:1;stroke:#000000;stroke-width:1.384;stroke-opacity:0"
d="M 180.17648,240.99744 63.762149,251.80819 143.7775,131.16624 l 62.3376,-0.39386 z"
id="path3979" />
<g
sodipodi:type="inkscape:box3d"
id="g6802"
style="fill:#e0e0e0;fill-opacity:1;stroke:#000000;stroke-width:1.384;stroke-opacity:0"
inkscape:perspectiveID="#perspective6800"
inkscape:corner0="0.055230505 : 0.17197019 : 0 : 1"
inkscape:corner7="-0.27119162 : 0.024502994 : 0.25 : 1">
<path
sodipodi:type="inkscape:box3dside"
id="path6814"
style="fill:#e9e9ff;fill-rule:evenodd;stroke:none;stroke-linejoin:round"
inkscape:box3dsidetype="11"
d="m 294.20091,189.62333 98.11286,-22.13592 v 150.65993 l -98.11286,-15.54229 z"
points="392.31377,167.48741 392.31377,318.14734 294.20091,302.60505 294.20091,189.62333 " />
<path
sodipodi:type="inkscape:box3dside"
id="path6804"
style="fill:#353564;fill-rule:evenodd;stroke:none;stroke-linejoin:round"
inkscape:box3dsidetype="6"
d="m 242.60102,173.89769 v 139.7488 l 51.59989,-11.04144 V 189.62333 Z"
points="242.60102,313.64649 294.20091,302.60505 294.20091,189.62333 242.60102,173.89769 " />
<path
sodipodi:type="inkscape:box3dside"
id="path6812"
style="fill:#afafde;fill-rule:evenodd;stroke:none;stroke-linejoin:round"
inkscape:box3dsidetype="13"
d="m 242.60102,313.64649 108.65729,25.81898 41.05546,-21.31813 -98.11286,-15.54229 z"
points="351.25831,339.46547 392.31377,318.14734 294.20091,302.60505 242.60102,313.64649 " />
<path
sodipodi:type="inkscape:box3dside"
id="path6806"
style="fill:#4d4d9f;fill-rule:evenodd;stroke:none;stroke-linejoin:round"
inkscape:box3dsidetype="5"
d="m 242.60102,173.89769 108.65729,-36.77237 41.05546,30.36209 -98.11286,22.13592 z"
points="351.25831,137.12532 392.31377,167.48741 294.20091,189.62333 242.60102,173.89769 " />
<path
sodipodi:type="inkscape:box3dside"
id="path6810"
style="fill:#d7d7ff;fill-rule:evenodd;stroke:none;stroke-linejoin:round"
inkscape:box3dsidetype="14"
d="m 351.25831,137.12532 v 202.34015 l 41.05546,-21.31813 V 167.48741 Z"
points="351.25831,339.46547 392.31377,318.14734 392.31377,167.48741 351.25831,137.12532 " />
<path
sodipodi:type="inkscape:box3dside"
id="path6808"
style="fill:#8686bf;fill-rule:evenodd;stroke:none;stroke-linejoin:round"
inkscape:box3dsidetype="3"
d="M 242.60102,173.89769 351.25831,137.12532 V 339.46547 L 242.60102,313.64649 Z"
points="351.25831,137.12532 351.25831,339.46547 242.60102,313.64649 242.60102,173.89769 " />
</g>
<g
sodipodi:type="inkscape:box3d"
id="g6816"
style="fill:#e0e0e0;fill-opacity:1;stroke:#000000;stroke-width:1.384;stroke-opacity:0"
inkscape:perspectiveID="#perspective6800"
inkscape:corner0="0.19210558 : 0.13662063 : 0 : 0.80789442"
inkscape:corner7="0.92097031 : 0.0063917674 : 0.25 : 1">
<path
sodipodi:type="inkscape:box3dside"
id="path6828"
style="fill:#e9e9ff;fill-rule:evenodd;stroke:none;stroke-linejoin:round"
inkscape:box3dsidetype="11"
d="m 258.10172,199.69235 -81.22229,17.71951 v 74.95048 l 81.22229,16.69743 z"
points="176.87943,217.41186 176.87943,292.36234 258.10172,309.05977 258.10172,199.69235 " />
<path
sodipodi:type="inkscape:box3dside"
id="path6818"
style="fill:#353564;fill-rule:evenodd;stroke:none;stroke-linejoin:round"
inkscape:box3dsidetype="6"
d="m 206.82097,188.31969 v 131.45676 l 51.28075,-10.71668 V 199.69235 Z"
points="206.82097,319.77645 258.10172,309.05977 258.10172,199.69235 206.82097,188.31969 " />
<path
sodipodi:type="inkscape:box3dside"
id="path6826"
style="fill:#afafde;fill-rule:evenodd;stroke:none;stroke-linejoin:round"
inkscape:box3dsidetype="13"
d="m 206.82097,319.77645 -73.55499,-22.68182 43.61345,-4.73229 81.22229,16.69743 z"
points="133.26598,297.09463 176.87943,292.36234 258.10172,309.05977 206.82097,319.77645 " />
<path
sodipodi:type="inkscape:box3dside"
id="path6820"
style="fill:#4d4d9f;fill-rule:evenodd;stroke:none;stroke-linejoin:round"
inkscape:box3dsidetype="5"
d="m 206.82097,188.31969 -73.55499,24.07021 43.61345,5.02196 81.22229,-17.71951 z"
points="133.26598,212.3899 176.87943,217.41186 258.10172,199.69235 206.82097,188.31969 " />
<path
sodipodi:type="inkscape:box3dside"
id="path6824"
style="fill:#d7d7ff;fill-rule:evenodd;stroke:none;stroke-linejoin:round"
inkscape:box3dsidetype="14"
d="m 133.26598,212.3899 v 84.70473 l 43.61345,-4.73229 v -74.95048 z"
points="133.26598,297.09463 176.87943,292.36234 176.87943,217.41186 133.26598,212.3899 " />
<path
sodipodi:type="inkscape:box3dside"
id="path6822"
style="fill:#8686bf;fill-rule:evenodd;stroke:none;stroke-linejoin:round"
inkscape:box3dsidetype="3"
d="m 206.82097,188.31969 -73.55499,24.07021 v 84.70473 l 73.55499,22.68182 z"
points="133.26598,212.3899 133.26598,297.09463 206.82097,319.77645 206.82097,188.31969 " />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

View File

@ -12,12 +12,6 @@ use Data::Dumper;
use Path::Tiny;
use utf8;
Glib::Object::Introspection->setup(
basename => 'Gtk',
version => '4.0',
package => 'Gtk4',
);
use Rsaves
qw/read_save check_correct_size get_saves find_current_save_index check_correct_size find_pokemon_substruct change_gender read_pc_storage save_pc_changes enable_eon_ticket save_changes pokemon_set_shiny read_pkm_file_box parse_version_name check_flag_id get_first_super_data check_rematch/;
use Rsaves::Constants::Global
@ -25,6 +19,18 @@ use Rsaves::Constants::Global
use Rsaves::Constants::Emerald::Flags;
use Rsaves::Constants::Emerald::Rematches;
Glib::Object::Introspection->setup(
basename => 'Gtk',
version => '4.0',
package => 'Gtk4',
);
Glib::Object::Introspection->setup(
basename => 'Gdk',
version => '4.0',
package => 'Gdk',
);
my %rematches = @Rsaves::Constants::Emerald::Rematches::REMATCHES;
my $app = Gtk4::Application->new( 'tech.owlcode.GEmeTool', 'default-flags' );
@ -32,6 +38,11 @@ $app->signal_connect( activate => \&activate );
$app->run;
sub activate {
my $display = Gdk::Display::get_default();
my $icon_theme = Gtk4::IconTheme::get_for_display($display);
$icon_theme->set_search_path(path(__FILE__)->parent->parent->child('resources/icons')->absolute);
Gtk4::Window::set_default_icon_name('gemetool');
my $win;
my $menu = Glib::IO::Menu->new;
@ -75,6 +86,7 @@ sub activate {
$win->set_title('GEmeTool');
$win->set_show_menubar(1);
$win->set_default_size( 600, 600 );
$win->set_icon_name('gemetool');
$win->set_child($box);
$win->present;
}
@ -210,6 +222,8 @@ sub activate_about {
$about->set_license_type('gpl-3-0');
$about->add_credit_section( 'Ideas:', ['SpectreSpecs'] );
$about->set_authors( ['Sergio Iglesias'] );
my $texture = Gdk::Texture->new_from_filename(path(__FILE__)->parent->parent->child('resources/icons/scalable/actions/gemetool.svg'));
$about->set_logo($texture);
$about->set_website('https://git.owlcode.tech/sergiotarxz/GEmeTool');
$about->set_website_label('https://git.owlcode.tech/sergiotarxz/GEmeTool');