1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-25 13:55:34 -05:00

[themes] don't use screenshot transparency in shipped themes

This commit is contained in:
Dave Davenport 2022-12-31 00:23:48 +01:00
parent 9da2c12c8a
commit 9143d291d4
3 changed files with 11 additions and 2 deletions

View file

@ -804,6 +804,12 @@ static gboolean startup(G_GNUC_UNUSED gpointer data) {
return G_SOURCE_REMOVE; return G_SOURCE_REMOVE;
} }
static gboolean take_screenshot_quit ( G_GNUC_UNUSED void *data)
{
rofi_capture_screenshot();
rofi_quit_main_loop();
return G_SOURCE_REMOVE;
}
static gboolean record(G_GNUC_UNUSED void *data) { static gboolean record(G_GNUC_UNUSED void *data) {
rofi_capture_screenshot(); rofi_capture_screenshot();
return G_SOURCE_CONTINUE; return G_SOURCE_CONTINUE;
@ -1115,6 +1121,9 @@ int main(int argc, char *argv[]) {
if (find_arg_uint("-record-screenshots", &interval)) { if (find_arg_uint("-record-screenshots", &interval)) {
g_timeout_add((guint)(1000 / (double)interval), record, NULL); g_timeout_add((guint)(1000 / (double)interval), record, NULL);
} }
if ( find_arg_uint("-take-screenshot-quit", &interval)) {
g_timeout_add(interval, take_screenshot_quit, NULL);
}
if (find_arg("-benchmark-ui") >= 0) { if (find_arg("-benchmark-ui") >= 0) {
config.benchmark_ui = TRUE; config.benchmark_ui = TRUE;
} }

View file

@ -52,7 +52,7 @@
window { window {
location: center; location: center;
anchor: center; anchor: center;
transparency: "screenshot"; transparency: "real";
padding: 10px; padding: 10px;
border: 0px; border: 0px;
border-radius: 10px; border-radius: 10px;

View file

@ -18,7 +18,7 @@
location: center; location: center;
} }
window { window {
transparency: "screenshot"; transparency: "real";
background-color: #00000000; background-color: #00000000;
border: 0; border: 0;
padding: 0% 0% 1em 0%; padding: 0% 0% 1em 0%;