Update gtk128

This commit is contained in:
daleclack 2022-04-21 15:13:01 +08:00
parent f3453a5272
commit 416a62a2ab
3 changed files with 61 additions and 0 deletions

View File

@ -31,6 +31,7 @@ set(SOURCE_FILE src/main.cc src/MyWin.cc src/Game24.cc)
#Compile Resource
set(RESOURCE_LIST
icons/scalable/status/24game.svg
window.ui)
compile_gresources(RESOURCE_FILE

View File

@ -0,0 +1,58 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="48"
height="48"
viewBox="0 0 48 48"
version="1.1"
id="svg5"
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04, custom)"
sodipodi:docname="24game.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="#666666"
borderopacity="1.0"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:document-units="px"
showgrid="false"
inkscape:snap-smooth-nodes="false"
inkscape:zoom="16.543545"
inkscape:cx="20.763385"
inkscape:cy="30.948626"
inkscape:window-width="1844"
inkscape:window-height="1045"
inkscape:window-x="76"
inkscape:window-y="35"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" />
<defs
id="defs2" />
<g
inkscape:label="图层 1"
inkscape:groupmode="layer"
id="layer1">
<path
id="rect23227"
style="fill:#1a70e0;stroke-width:0.974598"
d="m 5.8524966,5.8374733 c 5.6887584,-5.75987392 31.6953694,-5.80667424 36.2003754,0 5.927763,7.6405197 5.931245,31.2845797 0,36.2849207 -6.955401,5.863759 -31.823657,5.809794 -36.2003754,0 -5.76249505,-7.649316 -5.84401942,-30.367845 0,-36.2849207 z"
sodipodi:nodetypes="sssss" />
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:21.3333px;line-height:1.25;font-family:sans-serif;fill:#000000;fill-opacity:1;stroke:none"
x="12.064167"
y="31.957142"
id="text27175"><tspan
sodipodi:role="line"
id="tspan27173"
x="12.064167"
y="31.957142">24</tspan></text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -5,6 +5,8 @@ MyWin::MyWin(BaseObjectType *cobject, const Glib::RefPtr<Gtk::Builder> &ref_Glad
ref_builder(ref_Glade),
winned(true)
{
set_icon_name("24game");
// Get Widgets
ref_builder->get_widget("label_numbers", label_numbers);
ref_builder->get_widget("entry_ans", entry_ans);