mirror of
https://github.com/nwg-piotr/nwg-panel.git
synced 2024-10-03 19:57:16 +03:00
add logo & name label
This commit is contained in:
parent
7b532c4faa
commit
3756469deb
89
nwg-processes.svg
Normal file
89
nwg-processes.svg
Normal file
@ -0,0 +1,89 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 4.2333333 4.2333335"
|
||||
version="1.1"
|
||||
id="svg8"
|
||||
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
|
||||
sodipodi:docname="nwg-processes.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"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||
<defs
|
||||
id="defs2" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="22.795939"
|
||||
inkscape:cx="15.901955"
|
||||
inkscape:cy="10.374655"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="false"
|
||||
units="px"
|
||||
inkscape:window-width="1918"
|
||||
inkscape:window-height="1018"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:pagecheckerboard="0"
|
||||
width="16px"
|
||||
inkscape:showpageshadow="2"
|
||||
inkscape:deskcolor="#d1d1d1"
|
||||
showguides="true">
|
||||
<sodipodi:guide
|
||||
position="-0.30184528,2.3887234"
|
||||
orientation="0,-1"
|
||||
id="guide1991"
|
||||
inkscape:locked="false" />
|
||||
<sodipodi:guide
|
||||
position="0.81783828,4.1614617"
|
||||
orientation="-1,0"
|
||||
id="guide1993"
|
||||
inkscape:locked="false"
|
||||
inkscape:label=""
|
||||
inkscape:color="rgb(0,134,229)" />
|
||||
<sodipodi:guide
|
||||
position="3.4007901,3.7570887"
|
||||
orientation="1,0"
|
||||
id="guide3550"
|
||||
inkscape:locked="false" />
|
||||
</sodipodi:namedview>
|
||||
<metadata
|
||||
id="metadata5">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-280.06665)">
|
||||
<path
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#00aad4;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.41669;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:markers stroke fill;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
|
||||
d="m 3.7168926,281.81044 -1.0109451,0.69373 -1.1499969,-1.24444 -1.111821,0.94199 0.001605,0.93295 h 3.2680792 z"
|
||||
id="path3451"
|
||||
sodipodi:nodetypes="ccccccc" />
|
||||
<path
|
||||
id="rect815"
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#00aad4;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.329802;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:markers stroke fill;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
|
||||
d="m 0.26458334,280.33123 v 0.16487 2.81236 H 1.727185 v 0.42506 H 1.0415017 v 0.31167 h 2.1503298 v -0.31167 H 2.5062623 v -0.42506 H 3.96875 v -2.97723 z m 0.32983243,0.32973 H 3.6389178 v 2.31777 H 0.59441577 Z" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 5.2 KiB |
@ -151,27 +151,13 @@ def list_processes(widget):
|
||||
|
||||
idx += 1
|
||||
|
||||
# global max_num_items
|
||||
# if max_num_items < idx:
|
||||
# max_num_items = idx
|
||||
#
|
||||
# if idx < max_num_items:
|
||||
# for i in range(idx, max_num_items):
|
||||
# lbl = Gtk.Label()
|
||||
# lbl.set_markup(" ")
|
||||
# grid.attach(lbl, 0, i, 1, 1)
|
||||
|
||||
grid.show_all()
|
||||
|
||||
# scrolled_window.get_vadjustment().set_value(scroll)
|
||||
|
||||
return True
|
||||
|
||||
|
||||
def on_background_cb(check_button):
|
||||
common_settings["processes-background-only"] = check_button.get_active()
|
||||
global max_num_items
|
||||
max_num_items = 0
|
||||
if window_lbl:
|
||||
window_lbl.set_visible(not common_settings["processes-background-only"])
|
||||
list_processes(None)
|
||||
@ -179,8 +165,6 @@ def on_background_cb(check_button):
|
||||
|
||||
def on_own_cb(check_button):
|
||||
common_settings["processes-own-only"] = check_button.get_active()
|
||||
global max_num_items
|
||||
max_num_items = 0
|
||||
list_processes(None)
|
||||
|
||||
|
||||
@ -265,9 +249,17 @@ def main():
|
||||
dist.set_property("vexpand", True)
|
||||
box.pack_start(dist, True, True, 0)
|
||||
|
||||
hbox = Gtk.Box.new(Gtk.Orientation.HORIZONTAL, 12)
|
||||
hbox = Gtk.Box.new(Gtk.Orientation.HORIZONTAL, 6)
|
||||
hbox.set_property("margin", 6)
|
||||
box.pack_start(hbox, False, False, 0)
|
||||
|
||||
img = Gtk.Image.new_from_icon_name("nwg-processes", Gtk.IconSize.LARGE_TOOLBAR)
|
||||
hbox.pack_start(img, False, False, 0)
|
||||
|
||||
lbl = Gtk.Label()
|
||||
lbl.set_markup("<b>nwg-processes</b>")
|
||||
hbox.pack_start(lbl, False, False, 0)
|
||||
|
||||
cb = Gtk.CheckButton.new_with_label("Background only")
|
||||
cb.set_tooltip_text("Processes that don't belong to the sway tree")
|
||||
cb.set_active(common_settings["processes-background-only"])
|
||||
@ -284,10 +276,6 @@ def main():
|
||||
hbox.pack_end(btn, False, False, 0)
|
||||
btn.connect("clicked", Gtk.main_quit)
|
||||
|
||||
# btn = Gtk.Button.new_with_label("Refresh")
|
||||
# hbox.pack_end(btn, False, False, 0)
|
||||
# btn.connect("clicked", list_processes)
|
||||
|
||||
screen = Gdk.Screen.get_default()
|
||||
provider = Gtk.CssProvider()
|
||||
style_context = Gtk.StyleContext()
|
||||
|
Loading…
Reference in New Issue
Block a user