feat: add nixos icon
This commit is contained in:
@@ -4,6 +4,7 @@ import Bar from "./widget/Bar";
|
||||
|
||||
App.start({
|
||||
css: style,
|
||||
icons: "icons",
|
||||
main() {
|
||||
App.get_monitors().map(Bar);
|
||||
},
|
||||
|
||||
1
astal/icons/nixos-2.svg
Normal file
1
astal/icons/nixos-2.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>NixOS</title><path d="M7.352 1.592l-1.364.002L5.32 2.75l1.557 2.713-3.137-.008-1.32 2.34H14.11l-1.353-2.332-3.192-.006-2.214-3.865zm6.175 0l-2.687.025 5.846 10.127 1.341-2.34-1.59-2.765 2.24-3.85-.683-1.182h-1.336l-1.57 2.705-1.56-2.72zm6.887 4.195l-5.846 10.125 2.696-.008 1.601-2.76 4.453.016.682-1.183-.666-1.157-3.13-.008L21.778 8.1l-1.365-2.313zM9.432 8.086l-2.696.008-1.601 2.76-4.453-.016L0 12.02l.666 1.157 3.13.008-1.575 2.71 1.365 2.315L9.432 8.086zM7.33 12.25l-.006.01-.002-.004-1.342 2.34 1.59 2.765-2.24 3.85.684 1.182H7.35l.004-.006h.001l1.567-2.698 1.558 2.72 2.688-.026-.004-.006h.01L7.33 12.25zm2.55 3.93l1.354 2.332 3.192.006 2.215 3.865 1.363-.002.668-1.156-1.557-2.713 3.137.008 1.32-2.34H9.881Z"/></svg>
|
||||
|
After Width: | Height: | Size: 802 B |
1
astal/icons/nixos.svg
Normal file
1
astal/icons/nixos.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><path fill="#7EBAE4" d="M50.732 43.771L20.525 96.428l-7.052-12.033 8.14-14.103-16.167-.042L2 64.237l3.519-6.15 23.013.073 8.27-14.352 13.93-.037zm2.318 42.094l60.409.003-6.827 12.164-16.205-.045 8.047 14.115-3.45 6.01-7.05.008-11.445-20.097-16.483-.034-6.996-12.124zm35.16-23.074l-30.202-52.66L71.888 10l8.063 14.148 8.12-14.072 6.897.002 3.532 6.143-11.57 20.024 8.213 14.386-6.933 12.16z" clip-rule="evenodd" fill-rule="evenodd" style="--darkreader-inline-fill: var(--darkreader-background-7ebae4, #195178);" data-darkreader-inline-fill=""/><path fill="#5277C3" d="M39.831 65.463l30.202 52.66-13.88.131-8.063-14.148-8.12 14.072-6.897-.002-3.532-6.143 11.57-20.024-8.213-14.386 6.933-12.16zm35.08-23.207l-60.409-.003L21.33 30.09l16.204.045-8.047-14.115 3.45-6.01 7.051-.01 11.444 20.097 16.484.034 6.996 12.124zm2.357 42.216l30.207-52.658 7.052 12.034-8.141 14.102 16.168.043L126 64.006l-3.519 6.15-23.013-.073-8.27 14.352-13.93.037z" clip-rule="evenodd" fill-rule="evenodd" style="--darkreader-inline-fill: var(--darkreader-background-5277c3, #314f8e);" data-darkreader-inline-fill=""/></svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
@@ -31,6 +31,14 @@ window.Bar {
|
||||
background-color: $inactive-bg-color;
|
||||
}
|
||||
|
||||
.nix-icon {
|
||||
font-size: 24px;
|
||||
padding: 0 2px;
|
||||
background-color: #4169e1;
|
||||
border-top-right-radius: 4px;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.workspaces {
|
||||
font-weight: bold;
|
||||
|
||||
|
||||
@@ -139,6 +139,9 @@ export default function Bar(gdkmonitor: Gdk.Monitor) {
|
||||
application={App}>
|
||||
<centerbox>
|
||||
<box hexpand halign={Gtk.Align.START} >
|
||||
<box className="nix-icon">
|
||||
<icon icon="nixos-2" />
|
||||
</box>
|
||||
<Workspaces />
|
||||
</box>
|
||||
<box></box>
|
||||
|
||||
Reference in New Issue
Block a user