Skip to content

Commit

Permalink
Merge pull request #2 from ful1e5/dev
Browse files Browse the repository at this point in the history
BreezeX Cursor design + CI
  • Loading branch information
ful1e5 authored Jun 13, 2021
2 parents 0a2bb95 + cb955f4 commit c8ae778
Show file tree
Hide file tree
Showing 55 changed files with 1,001 additions and 157 deletions.
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
patreon: KaizKhatri
custom: https://www.paypal.me/kaizkhatri
17 changes: 17 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 60
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7
# Issues with these labels will never be considered stale
exemptLabels:
- pinned
- security
# Label to use when marking an issue as stale
staleLabel: wontfix
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false
89 changes: 89 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
name: build

on:
push:
paths-ignore:
- "**.md"
- "**.bbcode"
- LICENSE
branches: [main, dev]
pull_request:
paths-ignore:
- "**.md"
- "**.bbcode"
- LICENSE
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install build dependencies (apt)
run: sudo apt install -y libx11-dev libxcursor-dev libpng-dev
continue-on-error: false
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Caching yarn packages
uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Set Up NodeJS 12.x
uses: actions/setup-node@v1
with:
node-version: "12.x"
- name: Caching pip packages
uses: actions/cache@v2
id: pip-cache # use this to check for `cache-hit` (`steps.pip-cache.outputs.cache-hit != 'true'`)
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: "3.8"
- name: Generating `BreezeX` Cursor Theme
run: make
continue-on-error: false

- name: Compressing UNIX theme
run: |
tar -cvzf BreezeX-Dark.tar.gz themes/BreezeX-Dark
tar -cvzf BreezeX-Light.tar.gz themes/BreezeX-Light
- name: Uploading `bitmaps` artifact
uses: actions/upload-artifact@v2
with:
name: bitmaps
path: bitmaps/*

- name: Uploading `BreezeX-Dark` UNIX Theme artifact
uses: actions/upload-artifact@v2
with:
name: BreezeX-Dark
path: BreezeX-Dark.tar.gz

- name: Uploading `BreezeX-Light` UNIX Theme artifact
uses: actions/upload-artifact@v2
with:
name: BreezeX-Light
path: BreezeX-Light.tar.gz

- name: Uploading `BreezeX-Dark` Windows Theme artifact
uses: actions/upload-artifact@v2
with:
name: BreezeX-Dark-Windows
path: themes/BreezeX-Dark-Windows/*

- name: Uploading `BreezeX-Light` Windows Theme artifact
uses: actions/upload-artifact@v2
with:
name: BreezeX-Light-Windows
path: themes/BreezeX-Light-Windows/*
12 changes: 6 additions & 6 deletions bitmapper/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@ interface Config {
color: Colors;
}

const breeze = "#4D4D4D";
const white = "#FFFFFF";
const breezeColor = "#4D4D4D";
const whiteColor = "#FFFFFF";

const config: Config[] = [
{
themeName: "BreezeX-Dark",
color: {
base: breeze,
outline: white,
base: breezeColor,
outline: whiteColor,
},
},
{
themeName: "BreezeX-Light",
color: {
base: white,
outline: breeze,
base: whiteColor,
outline: breezeColor,
},
},
];
Expand Down
2 changes: 1 addition & 1 deletion bitmapper/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const main = async () => {
console.log(" -> Saving", key, "...");

content = SVGHandler.colorSvg(content, color);
await png.generateAnimated(browser, content, key);
await png.generateAnimated(browser, content, key, { playbackRate: 0.3 });
}

await browser.close();
Expand Down
36 changes: 18 additions & 18 deletions bitmapper/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
defer-to-connect "^1.0.1"

"@types/node@*":
version "14.14.41"
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.41.tgz#d0b939d94c1d7bd53d04824af45f1139b8c45615"
integrity sha512-dueRKfaJL4RTtSa7bWeTK1M+VH+Gns73oCgzvYfHZywRCoPSd8EkXBL0mZ9unPTveBn+D9phZBaxuzpwjWkW0g==
version "15.12.0"
resolved "https://registry.yarnpkg.com/@types/node/-/node-15.12.0.tgz#6a459d261450a300e6865faeddb5af01c3389bb3"
integrity sha512-+aHJvoCsVhO2ZCuT4o5JtcPrCPyDE3+1nvbDprYes+pPkEsbjH7AGUCNtjMOXS0fqH14t+B7yLzaqSz92FPWyw==

"@types/pixelmatch@^5.2.2":
version "5.2.3"
Expand Down Expand Up @@ -419,9 +419,9 @@ glob-parent@~5.1.0:
is-glob "^4.0.1"

glob@^7.1.3:
version "7.1.6"
resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6"
integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==
version "7.1.7"
resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.7.tgz#3b193e9233f01d42d0b3f78294bbeeb418f94a90"
integrity sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==
dependencies:
fs.realpath "^1.0.0"
inflight "^1.0.4"
Expand Down Expand Up @@ -723,9 +723,9 @@ normalize-path@^3.0.0, normalize-path@~3.0.0:
integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==

normalize-url@^4.1.0:
version "4.5.0"
resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-4.5.0.tgz#453354087e6ca96957bd8f5baf753f5982142129"
integrity sha512-2s47yzUxdexf1OhyRi4Em83iQk0aPvwTddtFz4hnSSw9dCEsLEGf6SwIO8ss/19S9iBb5sJaOuTvTGDeZI00BQ==
version "4.5.1"
resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-4.5.1.tgz#0dd90cf1288ee1d1313b87081c9a5932ee48518a"
integrity sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA==

once@^1.3.0, once@^1.3.1, once@^1.4.0:
version "1.4.0"
Expand Down Expand Up @@ -784,9 +784,9 @@ pend@~1.2.0:
integrity sha1-elfrVQpng/kRUzH89GY9XI4AelA=

picomatch@^2.0.4, picomatch@^2.2.1:
version "2.2.3"
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.2.3.tgz#465547f359ccc206d3c48e46a1bcb89bf7ee619d"
integrity sha512-KpELjfwcCDUb9PeigTs2mBJzXUPzAuP2oPcA989He8Rte0+YUAjw1JVedDhuTKPkHjSYzMN3npC9luThGYEKdg==
version "2.3.0"
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.0.tgz#f1f061de8f6a4bf022892e2d128234fb98302972"
integrity sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw==

pixelmatch@^5.2.1:
version "5.2.1"
Expand Down Expand Up @@ -1092,9 +1092,9 @@ typedarray-to-buffer@^3.1.5:
is-typedarray "^1.0.0"

typescript@^4.1.3:
version "4.2.4"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.2.4.tgz#8610b59747de028fda898a8aef0e103f156d0961"
integrity sha512-V+evlYHZnQkaz8TRBuxTA92yZBPotr5H+WhQ7bD3hZUndx5tGOa1fuCgeSjxAzM1RiN5IzvadIXTVefuuwZCRg==
version "4.3.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.3.2.tgz#399ab18aac45802d6f2498de5054fcbbe716a805"
integrity sha512-zZ4hShnmnoVnAHpVHWpTcxdv7dWP60S2FsydQLV8V5PbS3FifjWFFRiHSWpDJahly88PRyV5teTSLoq4eG7mKw==

unbzip2-stream@^1.3.3:
version "1.4.3"
Expand Down Expand Up @@ -1172,9 +1172,9 @@ write-file-atomic@^3.0.0:
typedarray-to-buffer "^3.1.5"

ws@^7.2.3:
version "7.4.4"
resolved "https://registry.yarnpkg.com/ws/-/ws-7.4.4.tgz#383bc9742cb202292c9077ceab6f6047b17f2d59"
integrity sha512-Qm8k8ojNQIMx7S+Zp8u/uHOx7Qazv3Yv4q68MiWWWOJhiwG5W3x7iqmRtJo8xxrciZUY4vRxUTJCKuRnF28ZZw==
version "7.4.6"
resolved "https://registry.yarnpkg.com/ws/-/ws-7.4.6.tgz#5654ca8ecdeee47c33a9a4bf6d28e2be2980377c"
integrity sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A==

xdg-basedir@^4.0.0:
version "4.0.0"
Expand Down
19 changes: 3 additions & 16 deletions builder/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import argparse
from pathlib import Path

from bxbuild.configure import get_config
from bxbuild.generator import Info, build, wbuild, xbuild
from bxbuild.configure import get_config # type: ignore
from bxbuild.generator import Info, build, wbuild, xbuild # type: ignore

parser = argparse.ArgumentParser(
prog="breezex_builder",
Expand Down Expand Up @@ -51,20 +51,7 @@
dest="xsizes",
metavar="INT",
nargs="+",
default=[
22,
24,
28,
32,
40,
48,
56,
64,
72,
80,
88,
96,
],
default=[22, 24, 28, 32, 40, 48, 56, 64, 72, 80, 88, 96],
type=int,
help="Set pixel-size for xcursor. (default: %(default)s)",
)
Expand Down
76 changes: 41 additions & 35 deletions builder/bxbuild/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,47 +19,53 @@
# Static #
##########
"all-scroll.png": {"xhot": 100, "yhot": 100},
"bottom_left_corner.png": {"xhot": 100, "yhot": 100},
"bottom_right_corner.png": {"xhot": 100, "yhot": 100},
"bottom_tee.png": {"xhot": 100, "yhot": 100},
"context-menu.png": {"xhot": 100, "yhot": 100},
"copy.png": {"xhot": 100, "yhot": 100},
"bd_double_arrow.png": {"xhot": 98, "yhot": 96},
"bottom_left_corner.png": {"xhot": 56, "yhot": 143},
"bottom_right_corner.png": {"xhot": 142, "yhot": 147},
"bottom_side.png": {"xhot": 100, "yhot": 148},
"center_ptr.png": {"xhot": 99, "yhot": 35},
"col-resize.png": {"xhot": 100, "yhot": 100},
"color-picker.png": {"xhot": 42, "yhot": 157},
"context-menu.png": {"xhot": 57, "yhot": 30},
"copy.png": {"xhot": 57, "yhot": 30},
"cross.png": {"xhot": 100, "yhot": 100},
"crossed_circle.png": {"xhot": 57, "yhot": 30},
"dnd_no_drop.png": {"xhot": 100, "yhot": 100},
"dotbox.png": {"xhot": 100, "yhot": 100},
"hand1.png": {"xhot": 100, "yhot": 100},
"hand2.png": {"xhot": 100, "yhot": 100},
"left_ptr.png": {"xhot": 100, "yhot": 100},
"left_tee.png": {"xhot": 100, "yhot": 100},
"link.png": {"xhot": 100, "yhot": 100},
"ll_angle.png": {"xhot": 100, "yhot": 100},
"lr_angle.png": {"xhot": 100, "yhot": 100},
"move.png": {"xhot": 100, "yhot": 100},
"pencil.png": {"xhot": 100, "yhot": 100},
"fd_double_arrow.png": {"xhot": 98, "yhot": 96},
"hand1.png": {"xhot": 107, "yhot": 35},
"hand2.png": {"xhot": 90, "yhot": 35},
"left_ptr.png": {"xhot": 57, "yhot": 30},
"left_side.png": {"xhot": 52, "yhot": 100},
"link.png": {"xhot": 57, "yhot": 30},
"move.png": {"xhot": 101, "yhot": 51},
"pencil.png": {"xhot": 38, "yhot": 156},
"pirate.png": {"xhot": 100, "yhot": 100},
"plus.png": {"xhot": 100, "yhot": 100},
"question_arrow.png": {"xhot": 100, "yhot": 100},
"right_ptr.png": {"xhot": 100, "yhot": 100},
"right_tee.png": {"xhot": 100, "yhot": 100},
"sb_down_arrow.png": {"xhot": 100, "yhot": 100},
"sb_h_double_arrow.png": {"xhot": 100, "yhot": 100},
"sb_left_arrow.png": {"xhot": 100, "yhot": 100},
"sb_right_arrow.png": {"xhot": 100, "yhot": 100},
"sb_up_arrow.png": {"xhot": 100, "yhot": 100},
"sb_v_double_arrow.png": {"xhot": 100, "yhot": 100},
"top_tee.png": {"xhot": 100, "yhot": 100},
"ul_angle.png": {"xhot": 100, "yhot": 100},
"ur_angle.png": {"xhot": 100, "yhot": 100},
"question_arrow.png": {"xhot": 57, "yhot": 30},
"right_ptr.png": {"xhot": 136, "yhot": 32},
"right_side.png": {"xhot": 147, "yhot": 100},
"row-resize.png": {"xhot": 100, "yhot": 100},
"sb_down_arrow.png": {"xhot": 100, "yhot": 160},
"sb_h_double_arrow.png": {"xhot": 98, "yhot": 96},
"sb_left_arrow.png": {"xhot": 38, "yhot": 100},
"sb_right_arrow.png": {"xhot": 162, "yhot": 100},
"sb_up_arrow.png": {"xhot": 100, "yhot": 38},
"sb_v_double_arrow.png": {"xhot": 98, "yhot": 96},
"top_left_corner.png": {"xhot": 57, "yhot": 55},
"top_right_corner.png": {"xhot": 142, "yhot": 55},
"top_side.png": {"xhot": 100, "yhot": 52},
"vertical-text.png": {"xhot": 100, "yhot": 100},
"wayland-cursor.png": {"xhot": 100, "yhot": 100},
"X_cursor.png": {"xhot": 100, "yhot": 100},
"xterm.png": {"xhot": 100, "yhot": 89},
"zoom-in.png": {"xhot": 100, "yhot": 100},
"zoom-out.png": {"xhot": 100, "yhot": 100},
"xterm.png": {"xhot": 100, "yhot": 100},
"zoom-in.png": {"xhot": 85, "yhot": 80},
"zoom-out.png": {"xhot": 85, "yhot": 80},
############
# Animated #
############
# Note: Animated cursors don't need an extension and frame numbers.
"left_ptr_watch": {"xhot": 100, "yhot": 100},
# NOTE: Animated cursors don't need an extension and frame numbers.
"left_ptr_watch": {"xhot": 57, "yhot": 30},
"wait": {"xhot": 100, "yhot": 100},
}

Expand All @@ -70,10 +76,10 @@
"right_ptr.png": {"to": "Alternate", "position": "top_right"},
"cross.png": {"to": "Cross"},
"left_ptr.png": {"to": "Default", "position": "top_left"},
"bottom_right_corner.png": {"to": "Diagonal_1"},
"bottom_left_corner.png": {"to": "Diagonal_2"},
"bd_double_arrow.png": {"to": "Diagonal_1"},
"fd_double_arrow.png": {"to": "Diagonal_2"},
"pencil.png": {"to": "Handwriting"},
"question_arrow.png": {"to": "Help", "position.png": "top_left"},
"question_arrow.png": {"to": "Help", "position": "top_left"},
"sb_h_double_arrow.png": {"to": "Horizontal"},
"xterm.png": {"to": "IBeam", "position": "top_left"},
"hand2.png": {"to": "Link", "position": "top_left"},
Expand All @@ -83,7 +89,7 @@
############
# Animated #
############
# Note: Animated cursors don't need frame numbers.
# NOTE: Animated cursors don't need frame numbers.
"left_ptr_watch": {"to": "Work", "position": "top_left"},
"wait": {"to": "Busy"},
}
Loading

0 comments on commit c8ae778

Please sign in to comment.