Add logo to nav bar

This commit is contained in:
Brahim Hadriche committed 2024-07-01 16:57:21 -04:00
1 parent 60a5cc0ef9
commit 8d0aee81b8
6 files changed
+133 -7

No files matched your search

@@ -10,6 +10,7 @@ function Init()
m.fadeAnimation = m.top.findNode("FadeAnimation")
m.sideBarFadeInterpolator = m.top.findNode("SideBarFadeInterpolator")
m.logoBarFadeInterpolator = m.top.findNode("LogoFadeInterpolator")
m.backgroundFadeInterpolator = m.top.findNode("BackgroundFadeInterpolator")
end function
@@ -79,6 +80,7 @@ function OnFocusedChildChange() as void
m.fadeAnimation.control = "stop"
m.sideBarFadeInterpolator.reverse = not isInFocusChain
m.logoBarFadeInterpolator.reverse = not isInFocusChain
m.backgroundFadeInterpolator.reverse = not isInFocusChain
m.fadeAnimation.control = "start"
end function
@@ -26,6 +26,19 @@
color="#242424"
opacity="0.9">
<Poster
id="LogoFav"
width="42"
height="42"
translation="[20, 48]"
uri="pkg:/images/logo-fav.png" />
<Poster
id="Logo"
width="106"
height="42"
translation="[20, 48]"
uri="pkg:/images/logo-dark.png" />
<MarkupList
id="ItemsList"
itemSize="[190,50]"
@@ -49,6 +62,11 @@
key="[0.0, 0.5, 1.0]"
keyValue="[0.0, 0.5, 1.0]"
fieldToInterp="SideBar.opacity" />
<FloatFieldInterpolator
id="LogoFadeInterpolator"
key="[0.0, 0.5, 1.0]"
keyValue="[0.0, 0.5, 1.0]"
fieldToInterp="Logo.opacity" />
<FloatFieldInterpolator
id="BackgroundFadeInterpolator"
key="[0.0, 0.5, 1.0]"
@@ -3,14 +3,8 @@
<field id="applicationInfo" type="node" bind="/ApplicationInfo" />
</interface>
<children>
<Poster
width="254"
height="100"
loadDisplayMode="scaleToFit"
uri="pkg:/images/logo-dark.png"
translation="[130,90]" />
<LabelList
translation="[130,220]"
translation="[130,92]"
itemSize="[1020,48]"
font="font:SmallestBoldSystemFont"
drawFocusFeedback="false">
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

+101
View File
@@ -0,0 +1,101 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="32"
height="32"
viewBox="0 0 198.2439 197.11453"
version="1.1"
id="svg10011"
sodipodi:docname="logo-fav.svg"
inkscape:version="1.2.1 (9c6d41e4, 2022-07-14)"
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="namedview100"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
showgrid="false"
inkscape:zoom="7.375"
inkscape:cx="14.847458"
inkscape:cy="19.79661"
inkscape:window-width="1440"
inkscape:window-height="744"
inkscape:window-x="0"
inkscape:window-y="25"
inkscape:window-maximized="1"
inkscape:current-layer="svg10011" />
<defs
id="defs10008">
<rect
x="180.21565"
y="328.72668"
width="570.68286"
height="243.62486"
id="rect418-2-51" />
<rect
x="180.21565"
y="328.72668"
width="570.68286"
height="243.62486"
id="rect418-2-8-2" />
<rect
x="180.21565"
y="328.72668"
width="570.68286"
height="243.62486"
id="rect418-2-53-6" />
<rect
x="180.21565"
y="328.72668"
width="570.68286"
height="243.62486"
id="rect418-2-6-6" />
<rect
x="180.21565"
y="328.72668"
width="570.68286"
height="243.62486"
id="rect418-2-5-5" />
<rect
x="180.21565"
y="328.72668"
width="570.68286"
height="243.62486"
id="rect418-2-1-4" />
<rect
x="180.21565"
y="328.72668"
width="570.68286"
height="243.62486"
id="rect418-2-3-1" />
</defs>
<g
id="layer1"
transform="matrix(1.7349039,0,0,1.7349039,-186.21265,-148.69195)">
<rect
style="fill:#f0f9f2;fill-opacity:1;stroke:none;stroke-width:2.7659;stroke-linejoin:round;stroke-dasharray:none"
id="rect8445-7"
width="108.94377"
height="108.94377"
x="109.70631"
y="88.402878"
rx="11.372706"
ry="19.408367" />
<g
aria-label="P"
transform="matrix(1.3209366,0,0,1.3208994,-101.59707,-354.38654)"
id="text416-2-13"
style="font-size:74.6667px;font-family:'The Amaranth';-inkscape-font-specification:'The Amaranth, Normal';white-space:pre;shape-inside:url(#rect418-2-51);display:inline;fill:#ff1c30;stroke-width:1.06591;stroke-linejoin:round">
<path
d="m 182.08151,397.45387 v -50.02669 h 15.38134 q 4.032,0 7.54134,1.49333 3.50933,1.49334 6.12267,4.18134 2.61333,2.61333 4.10667,6.12267 1.49333,3.50933 1.49333,7.54133 0,3.95734 -1.49333,7.46667 -1.49334,3.50934 -4.10667,6.12267 -2.61334,2.53867 -6.12267,4.03201 -3.50934,1.49333 -7.54134,1.49333 h -8.81067 v 11.57334 z m 6.57067,-18.14401 h 8.81067 q 2.61334,0 4.928,-0.97067 2.31467,-1.04533 4.03201,-2.688 1.71733,-1.71733 2.688,-3.95733 1.04533,-2.31467 1.04533,-4.92801 0,-2.688 -1.04533,-5.00267 -0.97067,-2.31466 -2.688,-4.032 -1.71734,-1.71733 -4.03201,-2.688 -2.31466,-0.97067 -4.928,-0.97067 h -8.81067 z"
style="font-family:'Bunya PERSONAL';-inkscape-font-specification:'Bunya PERSONAL, Normal'"
id="path335" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.4 KiB

@@ -0,0 +1,11 @@
{
inputHash: 'ae07cb8ec3094c8b75bc28c2ef728613',
outputs: [
{
outputFilePath: 'images/logo-fav.png',
outputHash: '0efa56df553a1afe84b38dfbfa40ce7e',
width: 100,
height: 100,
},
],
}