Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/scripts/terminal-helper
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,5 @@ eval "${terminals[${terminal}]}" 2>/dev/null || {
fi
}
rm "$file"

### to do : add ptyxis support ( i cant seem to do it)
5 changes: 5 additions & 0 deletions src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ impl HelloWindow {
preferences: serde_json::Value,
best_locale: &str,
) -> Self {
// Set dark theme preference
if let Some(settings) = gtk::Settings::default() {
settings.set_property("gtk-application-prefer-dark-theme", true);
}

// Import Css
let provider = gtk::CssProvider::new();
provider.load_from_resource(&format!("{RESPREFIX}/ui/style.css"));
Expand Down
7 changes: 3 additions & 4 deletions ui/cachyos-hello.glade
Original file line number Diff line number Diff line change
Expand Up @@ -382,15 +382,16 @@ We, the CachyOS Developers, hope that you will enjoy using CachyOS as much as we
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="homogeneous">True</property>
<property name="spacing">10</property>
<property name="margin-start">0</property>
<property name="margin-end">0</property>
<child>
<object class="GtkButton" id="tweaksBrowser">
<property name="label" translatable="yes">Apps/Tweaks</property>
<property name="name">tweaksBrowser</property>
<property name="can-focus">False</property>
<property name="receives-default">True</property>
<property name="tooltip-text" translatable="yes">Apps/Tweaks</property>
<property name="margin-left">15</property>
<property name="margin-right">15</property>
<signal name="clicked" handler="on_btn_clicked" swapped="no"/>
</object>
<packing>
Expand All @@ -406,8 +407,6 @@ We, the CachyOS Developers, hope that you will enjoy using CachyOS as much as we
<property name="can-focus">False</property>
<property name="receives-default">True</property>
<property name="tooltip-text" translatable="yes">Common application selection</property>
<property name="margin-left">15</property>
<property name="margin-right">15</property>
</object>
<packing>
<property name="expand">False</property>
Expand Down
4 changes: 4 additions & 0 deletions ui/style.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
window {
border-bottom-left-radius: 7px;
border-bottom-right-radius: 7px;
background-color: #1d1d1d; /* Darker than default Adwaita dark */
color: #e0e0e0;
}

#tweaksBrowserpage button {
Expand All @@ -24,4 +26,6 @@ window {

.aboutdialog {
border-radius: 7px;
background-color: #1d1d1d;
color: #e0e0e0;
}