Skip to content

Commit

Permalink
feat: update to GNOME 42, adw-gtk3, GTK4(libadwaita)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: GNOME Shell theme v42 is not tested with older GNOME versions
  • Loading branch information
lonr committed Jun 12, 2022
1 parent 2fd61fd commit 229f648
Show file tree
Hide file tree
Showing 1,555 changed files with 64,055 additions and 93,384 deletions.
11 changes: 0 additions & 11 deletions .editorconfig

This file was deleted.

1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

6 changes: 0 additions & 6 deletions .eslintrc

This file was deleted.

14 changes: 14 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Don't allow people to merge changes to these generated files, because the result
# may be invalid. You need to run "rush update" again.
pnpm-lock.yaml merge=text
shrinkwrap.yaml merge=binary
npm-shrinkwrap.json merge=binary
yarn.lock merge=binary

# Rush's JSON config files use JavaScript-style code comments. The rule below prevents pedantic
# syntax highlighters such as GitHub's from highlighting these comments as errors. Your text editor
# may also require a special configuration to allow comments in JSON.
#
# For more information, see this issue: https://github.com/microsoft/rushstack/issues/1088
#
*.json linguist-language=JSON-with-Comments
86 changes: 86 additions & 0 deletions .github/workflows/open-pr-on-changes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# copied from https://github.com/ubuntu/yaru/blob/master/.github/workflows/open-pr-on-changes.yaml
name: Update PR on upstream changes
on:
push:
paths:
- '.github/workflows/open-pr-on-changes.yaml'
schedule:
- cron: '8 0 * * *'

jobs:
refresh-upstream:
name: Check for upstream theme related changes
runs-on: ubuntu-latest
strategy:
matrix:
buildenv:
[
{
project: GNOME Shell,
repo: 'https://gitlab.gnome.org/GNOME/gnome-shell.git',
upstreambranch: main,
localbranch: gnome-shell,
projectdir: gnome-shell,
src: data/theme/,
dest: gtk/upstream/gnome-shell/theme
},
{
project: GTK3,
repo: 'https://github.com/lassekongo83/adw-gtk3.git',
upstreambranch: main,
localbranch: gtk3,
projectdir: adw-gtk3,
src: gtk/src/adw-gtk3/gtk-3.0/,
dest: gtk/upstream/gtk-3.0/
},
{
project: GTK4,
repo: 'https://gitlab.gnome.org/GNOME/libadwaita.git',
upstreambranch: main,
localbranch: gtk4,
projectdir: libadwaita,
src: src/stylesheet/,
dest: gtk/upstream/gtk-4.0
}
]
steps:
# Checkout code
- uses: actions/checkout@v3
- name: Download from ${{ matrix.buildenv.repo }}, on branch ${{ matrix.buildenv.upstreambranch }}
id: checknewupstream
run: |
hasModif="false"
pushd /tmp
git clone --branch ${UPSTEAM_BRANCH} --depth 1 ${UPSTREAM_REPO_URL}
popd
if [ ${DEST: -1} == '/' ]; then
mkdir -p ${DEST}
for src in ${SRC}; do
rm -rf ${DEST}/src
cp -a /tmp/${PROJECT_DIR}/${src} ${DEST}
done
else
rm -rf ${DEST}
cp -a /tmp/${PROJECT_DIR}/${SRC} ${DEST}
fi
MODIFIED=$(git status --porcelain)
if [ -n "$MODIFIED" ]; then
hasModif="true"
fi
echo "::set-output name=modified::${hasModif}"
env:
UPSTREAM_REPO_URL: ${{ matrix.buildenv.repo }}
UPSTEAM_BRANCH: ${{ matrix.buildenv.upstreambranch }}
SRC: ${{ matrix.buildenv.src }}
DEST: ${{ matrix.buildenv.dest }}
PROJECT_DIR: ${{ matrix.buildenv.projectdir }}
- name: Create or update Pull Request
if: steps.checknewupstream.outputs.modified == 'true'
uses: peter-evans/create-pull-request@v4
with:
commit-message: New upstream snapshot for ${{ matrix.buildenv.project }}
title: Auto update new upstream snapshot for ${{ matrix.buildenv.project }}
labels: automated pr, new upstream
body: '[New upstream ${{ matrix.buildenv.project }} changes](https://github.com/lonr/adwaita-one-dark/actions?query=workflow%3A%22Update+PR+on+upstream+changes%22) by GitHub Action'
branch: upstream-${{ matrix.buildenv.localbranch }}-update
token: ${{ secrets.GITHUB_TOKEN }}
90 changes: 81 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,81 @@
*-debug.log
*-error.log
/.nyc_output
/dist
/lib
/tmp
/yarn.lock
node_modules
Adwaita-One-Dark.zip
/gtk/package

# Logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# next.js build output
.next

# OS X temporary files
.DS_Store

# Rush temporary files
common/deploy/
common/temp/
common/autoinstallers/*/.npmrc
**/.rush/temp/

# Common toolchain intermediate files
temp
lib
lib-amd
lib-es6
lib-esnext
lib-commonjs
dist
*.scss.ts
*.sass.ts

# Heft
.heft
112 changes: 112 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
LICENSE
gtk/src/*
!gtk/src/*.ts
gtk/upstream
gtk/release

#-------------------------------------------------------------------------------------------------------------------
# Keep this section in sync with .gitignore
#-----------------------------------------------------------------------------------------------

# Logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# next.js build output
.next

# OS X temporary files
.DS_Store

# Rush temporary files
common/deploy/
common/temp/
common/autoinstallers/*/.npmrc
**/.rush/temp/

# Common toolchain intermediate files
temp
lib
lib-amd
lib-es6
lib-esnext
lib-commonjs
dist
*.scss.ts
*.sass.ts

# Heft
.heft

#-------------------------------------------------------------------------------------------------------------------
# Prettier-specific overrides
#-------------------------------------------------------------------------------------------------------------------

# Rush files
common/changes/
common/scripts/
common/config/
CHANGELOG.*

# Package manager files
pnpm-lock.yaml
yarn.lock
package-lock.json
shrinkwrap.json

# Build outputs
dist
lib

# Prettier reformats code blocks inside Markdown, which affects rendered output
*.md
6 changes: 0 additions & 6 deletions .prettierrc

This file was deleted.

16 changes: 16 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Documentation for this file: https://prettier.io/en/configuration.html
module.exports = {
// We use a larger print width because Prettier's word-wrapping seems to be tuned
// for plain JavaScript without type annotations
printWidth: 110,

// Use .gitattributes to manage newlines
endOfLine: 'auto',

// Use single quotes instead of double quotes
singleQuote: true,

// For ES5, trailing commas cannot be used in function parameters; it is counterintuitive
// to use them for arrays only
trailingComma: 'none'
};
17 changes: 17 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "pwa-node",
"request": "launch",
"name": "Debug gtk/src/compile.ts",
"skipFiles": ["<node_internals>/**"],
"program": "${workspaceFolder}/gtk/src/compile.ts",
"outFiles": ["${workspaceFolder}/gtk/lib/**/*.js"],
"runtimeArgs": ["--es-module-specifier-resolution=node"]
}
]
}
15 changes: 10 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
{
"cSpell.words": [
"getos",
"Gresource",
"Untar",
"Yaru"
"files.associations": {
"*.json": "jsonc"
},
"cSpell.words": ["argb", "csstree", "deepmerge", "mergeable", "rushstack", "Shaden", "Tinten"],
"eslint.workingDirectories": [
{ "pattern": "./colors/*/" },
{ "pattern": "./rigs/*/" },
"gtk",
"terminals",
"./utils"
]
}
Loading

0 comments on commit 229f648

Please sign in to comment.