Skip to content

Commit

Permalink
Restructure project, tweak Pages and add initial cursor theme
Browse files Browse the repository at this point in the history
  • Loading branch information
flipflop97 committed Jul 31, 2018
1 parent 31ef19a commit 5cf0e2c
Show file tree
Hide file tree
Showing 421 changed files with 118 additions and 27 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build/
14 changes: 0 additions & 14 deletions .install

This file was deleted.

28 changes: 15 additions & 13 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
</style>
<script>
function getIcons(group) {
var url = 'https://api.github.com/repos/flipflop97/Mato/contents/full/' + group;
var url = 'https://api.github.com/repos/flipflop97/Mato/contents/src/static/full/' + group;
var container = document.getElementById('icons-' + group);

var xmlHttp = new XMLHttpRequest();
Expand All @@ -174,7 +174,7 @@

contents.forEach(function(iconData, index) {
var file = iconData['name'];
var src = 'full/' + group + '/' + file;
var src = 'src/static/full/' + group + '/' + file;
var name = file.substring(0, file.length - 4);
var symbolic = name.endsWith('-symbolic') || name.endsWith('-symbolic-rtl');

Expand Down Expand Up @@ -222,7 +222,7 @@

hash = location.hash.substr(1);
icon = hash.split('/');
big.style = 'background-image: url("full/' + hash + '.svg");';
big.style = 'background-image: url("src/static/full/' + hash + '.svg");';

big.classList.remove('hidden');
}
Expand All @@ -242,7 +242,7 @@
</script>
</head>
<body>
<div class="fab" onclick="document.body.classList.toggle('dark');"><img src="symbolic/status/display-brightness-symbolic.svg" alt="Toggle between light and dark theme"></div>
<div class="fab" onclick="document.body.classList.toggle('dark');"><img src="src/static/symbolic/status/display-brightness-symbolic.svg" alt="Toggle between light and dark theme"></div>
<a class="big hidden" id="big" href="#main"></a>
<div class="content">
<div class="block">
Expand All @@ -252,20 +252,22 @@
<p>
Mato is a modern-looking icon pack for Linux. Inspired by Googles Material Design guidelines, these icons are made to look simple and colorful with subtle use of shadows. The icons are based on their original icons so they stay recognizable while gaining this new look.
</p><p>
All currently available icons are displayed below. If you'd like to submit icon requests or bug reports, head over to the <a href="https://github.com/flipflop97/Mato/issues">GitHub issue tracker</a>.
All currently available icons are displayed on the bottom of this page. If you'd like to submit icon requests or bug reports, head over to the <a href="https://github.com/flipflop97/Mato/issues">GitHub issue tracker</a>.
</p>
</div><div class="small block">
<div class="icons-title">Installation</div>
<p>
Arch Linux users can install Mato using the AUR package <a href="https://aur.archlinux.org/packages/mato-icons/">mato-icons</a>.
</p><p>
<i>Ubuntu and Debian builds are currently still under development.</i>
</p><p>
Packages for Fedora, openSUSE, CentOS and some other distributions are available <a href="https://software.opensuse.org/download/package?project=home%3Aflipflop97%3Amato-icons&package=mato-icons">here</a>.
<p>For easy installation, packages are available for certain distributions. These distributions include
<a href="https://aur.archlinux.org/packages/mato-icons/">Arch Linux</a>,
<a href="https://software.opensuse.org/download/package?project=home%3Aflipflop97%3Amato-icons&package=mato-icons">CentOS</a>,
<a href="https://software.opensuse.org/download/package?project=home%3Aflipflop97%3Amato-icons&package=mato-icons">Fedora</a>,
<a href="https://software.opensuse.org/download/package?project=home%3Aflipflop97%3Amato-icons&package=mato-icons">openSUSE</a>,
<a href="https://software.opensuse.org/download/package?project=home%3Aflipflop97%3Amato-icons&package=mato-icons">RHEL</a>,
<a href="https://software.opensuse.org/download/package?project=home%3Aflipflop97%3Amato-icons&package=mato-icons">Scientific Linux</a> and
<a href="https://software.opensuse.org/download/package?project=home%3Aflipflop97%3Amato-icons&package=mato-icons">SLE</a>.
</p><p>
If your current distribution isn't supported, you can download and install it manually from <a href="https://github.com/flipflop97/Mato/releases">the releases page</a> or by installing the development version using the command below.
You can also download Mato manually from <a href="https://github.com/flipflop97/Mato/releases">the releases page</a>. To build and install Mato, extract the package, open a terminal in the extracted folder and run the following command.
</p><p>
<code>sh -c 'mkdir -p ~/.icons && rm -rf ~/.icons/Mato/ && git clone https://github.com/flipflop97/Mato.git ~/.icons/Mato/'</code>
<code>make build install</code>
</p>
</div><div class="block hidden" id="icons-applications">
<div class="icons-title">Applications</div>
Expand Down
24 changes: 24 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
BUILD_DIR ?= $(CURDIR)/build/
export BUILD_DIR
INSTALL_DIR ?= ~/.icons/Mato/
export INSTALL_DIR
TEMP_DIR ?= /tmp/Mato/
export TEMP_DIR

.PHONY: all build install

all: build

build:
mkdir -p $(TEMP_DIR)
mkdir -p $(BUILD_DIR)
$(MAKE) -C src

install:
mkdir -p $(INSTALL_DIR)
rm -rf $(INSTALL_DIR)
cp -r $(BUILD_DIR) $(INSTALL_DIR)

clean:
rm -rf $(BUILD_DIR)

2 changes: 2 additions & 0 deletions src/cursors/hand2.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
24 2 2 hand2_24.png
48 4 4 hand2_48.png
18 changes: 18 additions & 0 deletions src/cursors/hand2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/cursors/left_ptr.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
24 2 2 left_ptr_24.png
48 4 4 left_ptr_48.png
17 changes: 17 additions & 0 deletions src/cursors/left_ptr.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions src/cursors/makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
BUILD_FILES = left_ptr hand2
LOCAL_DIR = cursors/

.PHONY: all prepare build symlink $(BUILD_FILES)

all: prepare build symlink

prepare:
mkdir -p $(TEMP_DIR)$(LOCAL_DIR)
mkdir -p $(BUILD_DIR)$(LOCAL_DIR)

build: $(BUILD_FILES)

symlink:
ln -sf left_ptr $(BUILD_DIR)$(LOCAL_DIR)default
ln -sf hand2 $(BUILD_DIR)$(LOCAL_DIR)hand
ln -sf hand $(BUILD_DIR)$(LOCAL_DIR)pointer

$(BUILD_FILES):
rsvg-convert -w 24 -o $(TEMP_DIR)$(LOCAL_DIR)$@_24.png $@.svg
rsvg-convert -w 48 -o $(TEMP_DIR)$(LOCAL_DIR)$@_48.png $@.svg
xcursorgen -p $(TEMP_DIR)$(LOCAL_DIR) $@.in $(BUILD_DIR)$(LOCAL_DIR)$@
9 changes: 9 additions & 0 deletions src/makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.PHONY: all cursors static

all: cursors static

cursors:
$(MAKE) -C cursors

static:
$(MAKE) -C static
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
8 changes: 8 additions & 0 deletions src/static/makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.PHONY: all copy

all: copy

copy:
cp -r full/ $(BUILD_DIR)
cp -r symbolic/ $(BUILD_DIR)
cp index.theme $(BUILD_DIR)
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading

0 comments on commit 5cf0e2c

Please sign in to comment.