Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
ximper-shell-panel
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
ximper-shell-panel
Commits
ddbe4520
Verified
Commit
ddbe4520
authored
Jun 18, 2026
by
Kirill Unitsaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
panel: adjust floating margins
parent
c7a353db
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
4 deletions
+27
-4
style-base.css
data/style-base.css
+5
-0
generate.go
src/generate.go
+22
-4
No files found.
data/style-base.css
View file @
ddbe4520
...
...
@@ -73,6 +73,11 @@ window#waybar.right .modules-right {
margin
:
5px
0
;
}
window
#waybar
.islands
.module
,
window
#waybar
.islands
.modules-right
,
window
#waybar
.islands
.modules-left
{
margin
:
0
;
}
.module
:hover
{
background-color
:
alpha
(
@
selected_bg
,
.4
);
}
...
...
src/generate.go
View file @
ddbe4520
...
...
@@ -31,10 +31,7 @@ func GenerateConfig(cfg Config, registry Registry) ([]byte, error) {
}
if
cfg
.
Type
==
"floating"
||
cfg
.
Type
==
"islands"
{
out
[
"margin-top"
]
=
8
out
[
"margin-bottom"
]
=
8
out
[
"margin-left"
]
=
8
out
[
"margin-right"
]
=
8
applyFloatingMargins
(
out
,
cfg
.
Position
)
}
left
,
err
:=
resolveModuleList
(
cfg
.
ModulesLeft
,
cfg
.
Position
,
registry
)
...
...
@@ -61,6 +58,27 @@ func GenerateConfig(cfg Config, registry Registry) ([]byte, error) {
return
append
(
data
,
'\n'
),
nil
}
func
applyFloatingMargins
(
out
map
[
string
]
any
,
position
string
)
{
switch
position
{
case
"top"
:
out
[
"margin-top"
]
=
8
out
[
"margin-left"
]
=
8
out
[
"margin-right"
]
=
8
case
"bottom"
:
out
[
"margin-bottom"
]
=
8
out
[
"margin-left"
]
=
8
out
[
"margin-right"
]
=
8
case
"left"
:
out
[
"margin-top"
]
=
8
out
[
"margin-bottom"
]
=
8
out
[
"margin-left"
]
=
8
case
"right"
:
out
[
"margin-top"
]
=
8
out
[
"margin-bottom"
]
=
8
out
[
"margin-right"
]
=
8
}
}
func
GenerateRuntimeConfig
()
([]
byte
,
error
)
{
cfg
,
registry
,
err
:=
loadInputs
()
if
err
!=
nil
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment