add fullscreen config

This commit is contained in:
Alexander Mohr 2025-04-20 14:32:41 +02:00
parent d79b81896e
commit 1da13e94fa
3 changed files with 84 additions and 0 deletions

View file

@ -453,6 +453,8 @@ fn animation_expand(
}
if done {
window.set_height_request(target_height);
window.set_width_request(target_width);
ControlFlow::Break
} else {
ControlFlow::Continue
@ -473,6 +475,8 @@ fn animation_expand_horizontal(
window.set_height_request(height + height_step);
ControlFlow::Continue
} else {
window.set_height_request(target_height);
window.set_width_request(target_width);
ControlFlow::Break
}
}
@ -491,6 +495,8 @@ fn animation_expand_vertical(
window.set_width_request(allocation.width() + width_step);
ControlFlow::Continue
} else {
window.set_height_request(target_height);
window.set_width_request(target_width);
ControlFlow::Break
}
}

View file

@ -0,0 +1,8 @@
image_size=64
columns=6
orientation="Vertical"
row_bow_orientation="Vertical"
content_halign="Center"
height="110%"
width="100%"
valign="Start"

View file

@ -0,0 +1,70 @@
* {
font-family: DejaVu;
}
#window {
all: unset;
background-color: rgba(33, 33, 33, 0.76); /* Matches #212121BB */
border-radius: 0;
padding-top: 5rem;
}
#window #outer-box {
}
#window #outer-box #input {
background-color: rgba(32, 32, 32, 0.6);
color: #f2f2f2;
border-bottom: 2px solid rgba(214, 174, 0, 1);
font-size: 1rem;
margin: 1rem 40rem;
}
#window #outer-box #input:focus, #window #outer-box #input:focus-visible, #window #outer-box #input:active {
all: unset;
background-color: rgba(32, 32, 32, 0.6);
color: #f2f2f2;
border-bottom: 2px solid rgba(214, 174, 2, 1);
font-size: 1rem;
}
#window #outer-box #scroll #inner-box {
padding: 0 25rem;
}
#window #outer-box #scroll #inner-box #entry {
color: #fff;
background-color: rgba(32, 32, 32, 0.1);
padding: 1rem;
margin: 1rem;
border-radius: 0.5rem;
border-bottom: 5px solid rgba(32, 32, 32, 0.1);
}
#window #outer-box #scroll #inner-box #entry #img {
margin-right: 0.5rem;
}
#window #outer-box #scroll #inner-box #entry:selected {
color: #fff;
background-color: rgba(255, 255, 255, 0.1);
outline: none;
border-bottom: 5px solid rgba(214, 174, 0, 1);
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
#row:hover {
background-color: rgba(255, 255, 255, 0);
outline: inherit;
}
#window #outer-box #scroll #inner-box #entry:hover {
background-color: rgba(255, 255, 255, 0.1);
outline: inherit;
}
#label {
margin-top: 1rem;
margin-bottom: 0;
}