"full-screen" with dynamic height listview #2281
Unanswered
mariobucatini
asked this question in
Theming
Replies: 1 comment 2 replies
-
|
don't think so.. the expand on the spacer will take all available space. So if listview is 'dynamic' it only takes the available space (and that is 0, as spacer takes it all). A 'dirty' work-around (border needs fixing though) * {
background-color: transparent;
border-color: #333333;
font: "mono 11.5";
margin: 0;
padding: 0;
spacing: 0;
text-color: white;
}
element {
padding: 8px 8px;
spacing: 12px;
background-color: #222222;
}
element selected {
background-color: #285577;
border: 1px;
border-color: #4c7899;
}
element-icon {
size: 1em;
}
inputbar {
children: [ prompt,entry ];
padding: 12px;
spacing: 12px;
background-color: #222222;
}
listview {
border: 0 0 1px;
columns: 1;
dynamic: false;
fixed-height: false;
lines: 7;
reverse: true;
background: transparent;
}
mainbox {
background-color: transparent;
//background-color: #222222;
border: 0px;
children: [ "message","listview","inputbar" ];
expand: false;
width: 500px;
}
message {
border: 0 0 1px;
background-color: #222222;
}
prompt {
text-color: #888888;
text-transform: bold;
}
spacer {
expand: true;
}
textbox {
padding: 8px 8px;
}
vertibox {
children: [ "spacer","mainbox" ];
orientation: vertical;
}
window {
background-color: rgba(0, 0, 0, 0.75);
children: [ "spacer","vertibox","spacer" ];
height: 100%;
orientation: horizontal;
width: 100%;
fullscreen: true;
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on a theme that dims the background around the picker.
For that I set the window width and height to 100% and then align the mainbox via expanded containers.
The problem I'm facing is, that if I don't set the listview to fixed-height, it will shrink to zero lines.
Is it possible to have the listview shrink if less then #lines items are available?
With fixed height:
theme.rasi
Beta Was this translation helpful? Give feedback.
All reactions