Skip to content

Commit

Permalink
feat: add pause button to glazewm example
Browse files Browse the repository at this point in the history
  • Loading branch information
michidk authored Dec 13, 2024
1 parent 556a83a commit e85f943
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/starter/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ body,
.logo,
.binding-mode,
.tiling-direction,
.paused-button,
.network,
.memory,
.cpu,
Expand Down Expand Up @@ -85,7 +86,8 @@ body,
}

.binding-mode,
.tiling-direction {
.tiling-direction,
.paused-button {
background: rgb(255 255 255 / 15%);
color: rgb(255 255 255 / 90%);
border-radius: 2px;
Expand Down
8 changes: 8 additions & 0 deletions examples/starter/with-glazewm.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,14 @@
<div className="right">
{output.glazewm && (
<>
{output.glazewm.isPaused && (
<button
className="paused-button"
onClick={() => glazewm.runCommand('wm-toggle-pause')}
>
PAUSED
</button>
)}
{output.glazewm.bindingModes.map(bindingMode => (
<button
className="binding-mode"
Expand Down

0 comments on commit e85f943

Please sign in to comment.