GithubHelp home page GithubHelp logo

inohime / anya Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 4.59 MB

A C++20 cross-platform customizable clock!

License: zlib License

C++ 98.95% CMake 1.05%
cpp cpp20 cross-platform sdl2 sdl2-image sdl2-ttf time

anya's Introduction

Anya

A cross-platform customizable clock to add more appeal to the standard and run in pretty mode or minimal mode.

example image

Available Features:

  1. Turn date off/on
  2. Themes:
    • Change Time & Date typography
    • Minimal mode (just time)
    • Change background to image (GIF supported) or colour
    • Create a custom theme:
      • Change menu background
      • Change button background colour
      • Change button outline colour
      • Change button text colour

How to build:

  1. Clone repository
    git clone https://github.com/inohime/Anya.git
    
  2. vcpkg
    git clone https://github.com/Microsoft/vcpkg.git
    cd vcpkg
    ./bootstrap-vcpkg.sh
    ./vcpkg integrate install
    
  3. CMake
    Generate the build files with Visual Studio Code & CMake Tools
    // not ready
    
  4. Unpack assets.rar into build/Debug

Application State

currently in development

anya's People

Contributors

inohime avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

anya's Issues

Set background image

Give the user an option to set the clip of the image to show or just downscale the entire image to fit the window resolution.

  • get user input for this idea.

Color Feature

User Interface ColorState: set and load colour states for elements

    • default colour state
    • hover colour state
    • pressed colour state

Util print

replace the current implementation of println(T, U..) with one that uses std::format for easier multi-line printing of all literal types.

Fix SetBG button

Set Background button activates on Theme button press. Add check.

Change Button Colours through UI

At the moment, the colour state can only be changed within code. For users that run the application, give them the option to change the button colours (text, outline, bg) through the user interface.

Return button functionality

Return button has no functionality currently.

  • Return back to previous page
  • Not conflict with other buttons (layering)
  • Return functionality to other buttons (state change)

Configuration Feature

  • Configuration: save and load theme data from file.
    • config file built if none exists.

All below is saved in theme data

  • Set layout mode: position buttons to where the user wants.
  • Themes: set button colours, premade themes, time font, backgrounds.

Date Feature

Add the option to show the date on the main screen.

Polishing

When all features are finished and the application design is finalized, the app will get a rewrite.
The rewrite includes:

  1. Optimization (squash 99.9% of bugs, reuse code where applicable, lower CPU usage to 0.5% max)
  2. Text will be rasterized in a photo editor and used as textures for a more clean look.
  3. Geometry (rectangles not included) will be textures instead of math
  4. Images will be loaded on a per layer basis to reduce memory usage

Cursor not deselecting outside of window

When the cursor hovers over a button within the window and immediately exits, it will not deselect the button. This makes the button still clickable out of bounds.

Application Editor

  • Add an editor built in for positioning buttons on each layer.
  • Add drag-select for buttons on a layer.
  • Add editor debug mode to print out the position and width of either the selected button or drag-selected buttons on the layer.
    1. Save the selected buttons on a layer in this format:
      • Layer: name
      • Buttons:
        • button name:
          • x, y, width, height
          • background colour, outline colour, text colour
    2. File name: name - date

Set Background Colour Option

Should take in input to change background colour to the user's choice.

  • Hex to RGB input
  • RGB only input

One of the two options is preferable.

No text input on typography button

When typing in setBGColorBtn, the typography button will not take any input. However, when openFileBtn is pressed afterwards, it'll work again.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.