Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
macx committed Feb 9, 2022
0 parents commit fd1ddf9
Show file tree
Hide file tree
Showing 6 changed files with 201 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
**/.DS_Store
.vscode
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 David Maciejewski

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Google Photos Dark Mode

[![Install with Stylus](https://img.shields.io/badge/install%20with-stylus-2AFEFE)](https://raw.githubusercontent.com/macx/google-photos-dark-mode/main/google-photos-dark-mode.user.css)
[![Version](https://img.shields.io/github/tag/macx/google-photos-dark-mode.svg?label=version)](https://github.com/macx/google-photos-dark-mode/tags)

This is the Dark Mode for Google Photos on Desktop.

Status Feb 2022: THIS IS WORK IN PROGRESS!

## Installation

1. Install the browser extension Stylus for [Chrome](https://chrome.google.com/webstore/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne), [Firefox](https://addons.mozilla.org/en/firefox/addon/styl-us/), [Opera](https://addons.opera.com/en/extensions/details/stylus/) or Cascadea for [Safari](https://cascadea.app/) to apply this style.
2. Apply it here: [google-photos-dark-mode.user.css](https://raw.githubusercontent.com/macx/google-photos-dark-mode/main/google-photos-dark-mode.user.css).

## How does this work?

With a so-called user styles, you can override the styles from the origin page within your browser. You are a single click away, to apply the Focus Mode to your Facebook.

## Features

TBA

## Contribute

If you want to report a bug or you have a feature request instead, [fill an issue](https://github.com/macx/google-photos-dark-mode/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc).
95 changes: 95 additions & 0 deletions google-photos-dark-mode.user.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
/* ==UserStyle==
@name Google Photos Dark Mode
@version v0.1.0
@namespace github.com/macx
@description Dark Mode for Google Photos on Desktop
@author macx
@license MIT
@homepageURL https://github.com/macx/strava-dark-mode
@supportURL https://github.com/macx/strava-dark-mode/issues
@updateURL https://raw.githubusercontent.com/macx/strava-dark-mode/main/strava-dark-mode.user.css
==/UserStyle== */

@-moz-document domain("photos.google.com") {
/* photos.google.com*/

:root {
--clr-text: var(--lt-color-gray-100);
--clr-bg: var(--lt-color-gray-800);
--clr-bg--content: var(--lt-color-gray-700);
--clr-line: var(--lt-color-gray-700);
--clr-icon: var(--lt-color-gray-400);
}

body {
background-color: var(--clr-bg);
color: var(--clr-text);
}

/*
┌──────────────────────────────────┐
HEADER
└──────────────────────────────────┘
*/

.QtDoYb {
background-color: var(--clr-bg);
}

.xoqcGf .QtDoYb {
border-color: var(--clr-line);
}

/* Searchbox */

.Aul2T {
background-color: var(--clr-bg--content);
}

/*
┌──────────────────────────────────┐
SIDEBAR
└──────────────────────────────────┘
*/

.wDSX5e {
background-color: var(--clr-bg);
}

.ztTj8d {
background-color: var(--clr-line);
}

.G7ubtf {
color: var(--clr-text);
}

/*
┌──────────────────────────────────┐
STAGE
└──────────────────────────────────┘
*/

.yk5vcd,
.RLo1Hf,
.xA0gfb {
color: var(--clr-text);
}

/*
┌──────────────────────────────────┐
ICONS
└──────────────────────────────────┘
*/

.R4HkWb .orgUxc,
.gb_na svg,
.gb_Dc svg,
.gb_0c .gb_2d,
.gb_Pc .gb_2d,
.DOAbib .JUQOtc,
.G6iPcb .JUQOtc {
fill: var(--clr-icon);
}
}

0 comments on commit fd1ddf9

Please sign in to comment.