Skip to content

Commit

Permalink
Letting my Formatter do its work so it doesn't bug me anymore, NO REA…
Browse files Browse the repository at this point in the history
…L CHANGES
  • Loading branch information
weiameili committed Dec 20, 2021
1 parent d0653e2 commit b8ba4c9
Show file tree
Hide file tree
Showing 13 changed files with 1,980 additions and 1,754 deletions.
34 changes: 20 additions & 14 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
# Contributing to Transcriptase

We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's:

- Reporting a bug
- Discussing the current state of the code
- Submitting a fix
- Proposing new features
- Becoming a maintainer
- Reporting a bug
- Discussing the current state of the code
- Submitting a fix
- Proposing new features
- Becoming a maintainer

## We Develop with Github

We use GitHub to host code, to track issues and feature requests, as well as accept pull requests.

## We Use [Github Flow](https://guides.github.com/introduction/flow/index.html), So All Code Changes Happen Through Pull Requests

Pull requests are the best way to propose changes to the codebase (we use [Github Flow](https://guides.github.com/introduction/flow/index.html)). We actively welcome your pull requests:

1. Fork the repo and create your branch from `master`.
Expand All @@ -21,26 +24,29 @@ Pull requests are the best way to propose changes to the codebase (we use [Githu
6. Issue that pull request!

## Any contributions you make will be under the MIT Software License

In short, when you submit code changes, your submissions are understood to be under the same <!--[MIT License](http://choosealicense.com/licenses/mit/)--> that covers the project. Feel free to contact the maintainers if that's a concern.

## Report bugs using Github's [issues](https://github.com/weiameili/Pensela/issues)

We use GitHub issues to track public bugs. Report a bug by [opening a new issue](https://github.com/weiameili/Pensela/issues/new); it's that easy!

**Great Bug Reports** tend to have:

- A quick summary and/or background
- Steps to reproduce
- Be specific!
- Give sample code if you can.
- What you expected would happen
- What actually happens
- Notes (possibly including why you think this might be happening, or stuff you tried that didn't work)
- A quick summary and/or background
- Steps to reproduce
- Be specific!
- Give sample code if you can.
- What you expected would happen
- What actually happens
- Notes (possibly including why you think this might be happening, or stuff you tried that didn't work)

People *love* thorough bug reports. I'm not even kidding.
People _love_ thorough bug reports. I'm not even kidding.

## Use a Consistent Coding Style

* 2 spaces for indentation rather than tabs
- 2 spaces for indentation rather than tabs

## License

By contributing, you agree that your contributions will be licensed under its license <!--MIT License-->.
80 changes: 43 additions & 37 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,63 +6,68 @@

# Pensela: The Swiss Army Knife of Screen Annotation Tools


## Features
- Basic Shapes
- Rectangle
- Circle
- Triangle
- Lines (Straight and Freehand)
- Any Polygon
- Stickers: Pre Added Shapes
- Star
- Cross
- Tick
- Single and Double Sided Arrows
- Highlighter
- Laser Pointer
- Screenshot Tool
- Text Support
- Backgound Pages
- Custom Color Picker &nbsp;
- And More ...

- Basic Shapes
- Rectangle
- Circle
- Triangle
- Lines (Straight and Freehand)
- Any Polygon
- Stickers: Pre Added Shapes
- Star
- Cross
- Tick
- Single and Double Sided Arrows
- Highlighter
- Laser Pointer
- Screenshot Tool
- Text Support
- Backgound Pages
- Custom Color Picker &nbsp;
- And More ...

## Screenshots

![Screenshot](./assets/screenshot2.png)
![Screenshot](./assets/screenshot1.png)

A Promo / Demo can be found [here](https://youtu.be/OzpgCw24ut8)

## Installation

**Packages can be Found in the [releases](https://github.com/weiameili/Pensela/releases) Section**

**Note**: Imagemagick is required for screenshots on linux and screenshots are not guaranteed to work on wayland as of now.

| OS | Instructions |
| ------------- | ------------- |
| Debian Based Linux | A .deb archive has been provided |
| Arch Linux | Arch user can install the [pensela-bin](https://aur.archlinux.org/packages/pensela-bin/) aur package or the prebuilt package archive provided in the releases section |
| Other Linux | An AppImage has been provided |
| Windows | Download and run the setup provided in the releases section. You will have to disable your antivirus and / or mark the setup as safe |
| Mac OS | A dmg has been provided. Or use Homebrew: `brew install --cask pensela` |
| OS | Instructions |
| ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Debian Based Linux | A .deb archive has been provided |
| Arch Linux | Arch user can install the [pensela-bin](https://aur.archlinux.org/packages/pensela-bin/) aur package or the prebuilt package archive provided in the releases section |
| Other Linux | An AppImage has been provided |
| Windows | Download and run the setup provided in the releases section. You will have to disable your antivirus and / or mark the setup as safe |
| Mac OS | A dmg has been provided. Or use Homebrew: `brew install --cask pensela` |

## Features to be Added in Future Versions
- Better UX
- Auto Updates
- Guided "Getting Started" Tour
- Add more Features
- Full-fledged Screen Recording Tool
- Better Text Support
- Seperate Colors For Stroke and Fill
- Better Laser Pointer

- Better UX
- Auto Updates
- Guided "Getting Started" Tour
- Add more Features
- Full-fledged Screen Recording Tool
- Better Text Support
- Seperate Colors For Stroke and Fill
- Better Laser Pointer

## Contributing

Any kind of contribution is welcome

1. Fork the Project
2. Install the dependencies with npm
3. Create your Feature Branch
4. Commit your Changes
5. Push to the Branch
3. Create your Feature Branch
4. Commit your Changes
5. Push to the Branch
6. Open a Pull Request

Feel free to report an issue or request a feature in the Issues Section.
Expand All @@ -74,4 +79,5 @@ Feel free to report an issue or request a feature in the Issues Section.
</a>

## License

Distributed under the ISC License.
194 changes: 99 additions & 95 deletions background.html
Original file line number Diff line number Diff line change
@@ -1,109 +1,113 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Choose Background</title>
<style>
body {
width: 100vw;
height: 100vh;
padding: 0vh;
margin: 0px;
display: flex;
}
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Choose Background</title>
<style>
body {
width: 100vw;
height: 100vh;
padding: 0vh;
margin: 0px;
display: flex;
}

#container {
margin: auto;
width: 95vw;
height: 95vh;
border-radius: 30px;
background-color: rgb(8, 13, 15);
display: flex;
justify-content: space-around;
box-shadow: 0px 0px 10px 2px #000;
}
#container {
margin: auto;
width: 95vw;
height: 95vh;
border-radius: 30px;
background-color: rgb(8, 13, 15);
display: flex;
justify-content: space-around;
box-shadow: 0px 0px 10px 2px #000;
}

#main {
width: 85vw;
height: 87vh;
display: grid;
grid-template-columns: auto auto;
grid-template-rows: auto auto auto auto;
grid-gap: 4vmin;
margin-top: auto;
margin-bottom: auto;
}
#main {
width: 85vw;
height: 87vh;
display: grid;
grid-template-columns: auto auto;
grid-template-rows: auto auto auto auto;
grid-gap: 4vmin;
margin-top: auto;
margin-bottom: auto;
}

.item {
background-color: indianred;
box-shadow: 0px 0px 5px 1px #80caff;
border-radius: 15px;
transition: all 1s;
}
.item:hover {
cursor: pointer;
box-shadow: 0px 0px 10px 2px #ff8f80;
}
.item {
background-color: indianred;
box-shadow: 0px 0px 5px 1px #80caff;
border-radius: 15px;
transition: all 1s;
}
.item:hover {
cursor: pointer;
box-shadow: 0px 0px 10px 2px #ff8f80;
}

.item.transparent {
background-image: url("./assets/icons/transparent.png");
background-size: 250% 400%;
}
.item.transparent {
background-image: url("./assets/icons/transparent.png");
background-size: 250% 400%;
}

.item.black {
background-color: #000;
}
.item.black {
background-color: #000;
}

.item.white {
background-color: #fff;
}
.item.white {
background-color: #fff;
}

.item.blue {
background-color: #b4deff;
}
.item.blue {
background-color: #b4deff;
}

.item.red {
background-color: #ffb4bd;
}
.item.red {
background-color: #ffb4bd;
}

.item.green {
background-color: #b3fdd7;
}
.item.green {
background-color: #b3fdd7;
}

.item.yellow {
background-color: #fff2b9;
}
.item.yellow {
background-color: #fff2b9;
}

.item.orange {
background-color: #ffad88;
}
.item.orange {
background-color: #ffad88;
}
</style>
</head>
<body>
<div id="container">
<div id="main">
<div
class="item transparent"
col="00000000"
bg='url("./assets/icons/transparent.png")'
></div>
<div class="item black" col="000000" bg="#000000"></div>
<div class="item white" col="ffffff" bg="#ffffff"></div>
<div class="item red" col="ffb4bd" bg="#ffb4bd"></div>
<div class="item blue" col="b4deff" bg="#b4deff"></div>
<div class="item yellow" col="fff2b9" bg="#fff2b9"></div>
<div class="item green" col="b3fdd7" bg="#b3fdd7"></div>
<div class="item orange" col="ffad88" bg="#ffad88"></div>
</div>
</div>
</body>
<script>
const { ipcRenderer } = require("electron");
const jQuery = require("jquery");
const $ = jQuery;

</style>
</head>
<body>
<div id="container">
<div id="main">
<div class="item transparent" col="00000000" bg='url("./assets/icons/transparent.png")'></div>
<div class="item black" col="000000" bg="#000000"></div>
<div class="item white" col="ffffff" bg="#ffffff"></div>
<div class="item red" col="ffb4bd" bg="#ffb4bd"></div>
<div class="item blue" col="b4deff" bg="#b4deff"></div>
<div class="item yellow" col="fff2b9" bg="#fff2b9"></div>
<div class="item green" col="b3fdd7" bg="#b3fdd7"></div>
<div class="item orange" col="ffad88" bg="#ffad88"></div>
</div></div>
</body>
<script>
const { ipcRenderer } = require("electron")
const jQuery = require("jquery");
const $ = jQuery;

$(".item").on('click', (e) => {
ipcRenderer.send('bgUpdate', e.target.getAttribute('bg'))
ipcRenderer.send('bgSubmit', e.target.getAttribute('col'))
window.close()
})
</script>
</html>
$(".item").on("click", (e) => {
ipcRenderer.send("bgUpdate", e.target.getAttribute("bg"));
ipcRenderer.send("bgSubmit", e.target.getAttribute("col"));
window.close();
});
</script>
</html>
Loading

0 comments on commit b8ba4c9

Please sign in to comment.