Skip to content

Commit

Permalink
Merge branch 'master' into lenemter/support-dark-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
lenemter authored Jan 28, 2025
2 parents 831e723 + 084ab7c commit 4c6e603
Show file tree
Hide file tree
Showing 478 changed files with 5,379 additions and 2,483 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/gettext.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,17 @@ on:
branches: [master]

jobs:
build:
runs-on: ubuntu-22.04
container:
image: ghcr.io/elementary/docker:next-unstable
gettext_template:
runs-on: ubuntu-latest

steps:
- name: Install git
run: |
apt-get update
apt-get install git -y
- name: Clone repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GIT_USER_TOKEN }}

- name: Update Translation Files
uses: elementary/actions/gettext-template@next
uses: elementary/actions/gettext-template@main
env:
GIT_USER_TOKEN: ${{ secrets.GIT_USER_TOKEN }}
GIT_USER_NAME: "elementaryBot"
Expand Down
22 changes: 20 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
version: [stable, unstable, development-target]
include:
- version: stable
mutter_pkg: libmutter-10-dev
mutter_pkg: libmutter-14-dev
- version: unstable
mutter_pkg: libmutter-10-dev
mutter_pkg: libmutter-14-dev
- version: development-target
mutter_pkg: libmutter-14-dev
container:
Expand All @@ -39,6 +39,24 @@ jobs:
meson build
ninja -C build install
fedora:
runs-on: ubuntu-latest

container:
image: fedora:latest

steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: |
dnf install -y desktop-file-utils accountsservice-devel gdk-pixbuf2-devel gnome-desktop3-devel granite-devel gtk3-devel libhandy-devel lightdm-gobject-devel mutter-devel libX11-devel meson valac
- name: Build
env:
DESTDIR: out
run: |
meson build
ninja -C build install
lint:

runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ jobs:
GIT_USER_NAME: "elementaryBot"
GIT_USER_EMAIL: "builds@elementary.io"
with:
release_branch: 'odin'
release_branch: 'noble'
23 changes: 23 additions & 0 deletions compositor/Background/Background.vala
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,38 @@ namespace GreeterCompositor {
var settings = background_source.gnome_background_settings;

color_string = settings.get_string ("primary-color");
#if HAS_MUTTER47
var color = Cogl.Color.from_string (color_string);
#else
var color = Clutter.Color.from_string (color_string);
#endif
if (color == null) {
#if HAS_MUTTER47
color = Cogl.Color.from_string ("black");
#else
color = Clutter.Color.from_string ("black");
#endif
}

var shading_type = settings.get_enum ("color-shading-type");

if (shading_type == GDesktop.BackgroundShading.SOLID) {
background.set_color (color);
} else {
color_string = settings.get_string ("secondary-color");
#if HAS_MUTTER47
var second_color = Cogl.Color.from_string (color_string);
#else
var second_color = Clutter.Color.from_string (color_string);
#endif
if (second_color == null) {
#if HAS_MUTTER47
second_color = Cogl.Color.from_string ("black");
#else
second_color = Clutter.Color.from_string ("black");
#endif
}

background.set_gradient ((GDesktop.BackgroundShading) shading_type, color, second_color);
}
}
Expand Down
4 changes: 4 additions & 0 deletions compositor/Background/BackgroundContainer.vala
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ namespace GreeterCompositor {
}

public void set_black_background (bool black) {
#if HAS_MUTTER47
set_background_color (black ? Cogl.Color.from_string ("Black") : null);
#else
set_background_color (black ? Clutter.Color.from_string ("Black") : null);
#endif
}

private void update () {
Expand Down
Loading

0 comments on commit 4c6e603

Please sign in to comment.