Skip to content

Commit

Permalink
chore: reduce thread worker number
Browse files Browse the repository at this point in the history
chore: fix css issue
deps: bump version
  • Loading branch information
Kosette committed Apr 9, 2024
1 parent 8070f8f commit ced4a16
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 38 deletions.
28 changes: 14 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions src/ui/adwaita.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
* {
window {
box-shadow: none;
}

Expand Down Expand Up @@ -51,13 +51,13 @@ list {

overlay > label {
background-color: #aeb5fa;
border-radius: 9px;
border-radius: 999px;
margin: 3px;
}

box > overlay > image {
background-color: #aeb5fa;
border-radius: 9px;
border-radius: 999px;
margin: 3px;
}

Expand Down Expand Up @@ -88,6 +88,7 @@ placessidebar {
background-color: rgba(0, 0, 0, 0);
}
.sidebar-pane {
box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
background-color: rgba(245, 245, 245, 0);
color: rgba(1, 1, 1, 0.8);
}
Expand Down
7 changes: 4 additions & 3 deletions src/ui/adwaitadark.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
* {
window {
box-shadow: none;
}

Expand Down Expand Up @@ -47,13 +47,13 @@ list {

overlay > label {
background-color: #aeb5fa;
border-radius: 9px;
border-radius: 999px;
margin: 3px;
}

box > overlay > image {
background-color: #aeb5fa;
border-radius: 9px;
border-radius: 999px;
margin: 3px;
}

Expand Down Expand Up @@ -88,6 +88,7 @@ placessidebar {
background-color: rgba(0, 0, 0, 0);
}
.sidebar-pane {
box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
background-color: rgba(0, 0, 0, 0);
color: rgba(255, 255, 255, 0.8);
}
Expand Down
7 changes: 4 additions & 3 deletions src/ui/alpha-dark.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
* {
window {
box-shadow: none;
}

Expand Down Expand Up @@ -47,13 +47,13 @@ list {

overlay > label {
background-color: #aeb5fa;
border-radius: 9px;
border-radius: 999px;
margin: 3px;
}

box > overlay > image {
background-color: #aeb5fa;
border-radius: 9px;
border-radius: 999px;
margin: 3px;
}

Expand Down Expand Up @@ -205,6 +205,7 @@ windowcontrols > button.minimize:hover {
}

.sidebar-pane {
box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
background-color: rgba(0, 0, 0, 0);
color: rgba(255, 255, 255, 0.8);
}
Expand Down
9 changes: 6 additions & 3 deletions src/ui/basic.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
* {
window {
box-shadow: none;
}

Expand Down Expand Up @@ -51,13 +51,13 @@ list {

overlay > label {
background-color: #aeb5fa;
border-radius: 9px;
border-radius: 999px;
margin: 3px;
}

box > overlay > image {
background-color: #aeb5fa;
border-radius: 9px;
border-radius: 999px;
margin: 3px;
}

Expand Down Expand Up @@ -92,6 +92,9 @@ placessidebar {
background-color: rgba(0, 0, 0, 0);
}

.sidebar-pane {
box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}
windowcontrols > button {
/* GTK4 */
color: transparent;
Expand Down
4 changes: 1 addition & 3 deletions src/ui/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use std::env;
use std::fs::{self, write};
use std::path::PathBuf;
use std::sync::OnceLock;
use std::time::Duration;
use tokio::runtime::{self, Runtime};
use toml::to_string;

Expand All @@ -28,9 +27,8 @@ pub fn runtime() -> &'static Runtime {
static RUNTIME: OnceLock<Runtime> = OnceLock::new();
RUNTIME.get_or_init(|| {
runtime::Builder::new_multi_thread()
.worker_threads(8)
.worker_threads(4)
.thread_stack_size(STACK_SIZE)
.thread_keep_alive(Duration::from_millis(4000))
.enable_all()
.build()
.expect("Setting up tokio runtime needs to succeed.")
Expand Down
7 changes: 4 additions & 3 deletions src/ui/solarized.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
* {
window {
box-shadow: none;
}

Expand Down Expand Up @@ -47,13 +47,13 @@ list {

overlay > label {
background-color: #aeb5fa;
border-radius: 9px;
border-radius: 999px;
margin: 3px;
}

box > overlay > image {
background-color: #aeb5fa;
border-radius: 9px;
border-radius: 999px;
margin: 3px;
}

Expand Down Expand Up @@ -159,6 +159,7 @@ scrolledwindow > viewport > box > box > box {
@define-color dark_4 #241f31;
@define-color dark_5 #000000;
.sidebar-pane {
box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
background-color: rgba(0, 0, 0, 0);
color: rgba(255, 255, 255, 0.8);
}
Expand Down
7 changes: 4 additions & 3 deletions src/ui/style-dark.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
* {
window {
box-shadow: none;
}

Expand Down Expand Up @@ -51,14 +51,14 @@ list {

overlay > label {
background-color: #aeb5fa;
border-radius: 9px;
border-radius: 999px;
margin: 3px;
color: #ffffff;
}

box > overlay > image {
background-color: #aeb5fa;
border-radius: 9px;
border-radius: 999px;
margin: 3px;
color: #ffffff;
}
Expand Down Expand Up @@ -177,6 +177,7 @@ placessidebar {
background-color: rgba(0, 0, 0, 0);
}
.sidebar-pane {
box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
background-color: rgba(0, 0, 0, 0);
}

Expand Down
7 changes: 4 additions & 3 deletions src/ui/style.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
* {
window {
box-shadow: none;
}

Expand Down Expand Up @@ -51,13 +51,13 @@ list {

overlay > label {
background-color: #aeb5fa;
border-radius: 9px;
border-radius: 999px;
margin: 3px;
}

box > overlay > image {
background-color: #aeb5fa;
border-radius: 9px;
border-radius: 999px;
margin: 3px;
}

Expand Down Expand Up @@ -92,6 +92,7 @@ placessidebar {
background-color: rgba(0, 0, 0, 0);
}
.sidebar-pane {
box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
background-color: rgba(0, 0, 0, 0);
color: #000;
}
Expand Down

0 comments on commit ced4a16

Please sign in to comment.