-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(application) Updated with customtkinter; Volume Controls and major-minor improvements #34
base: master
Are you sure you want to change the base?
(application) Updated with customtkinter; Volume Controls and major-minor improvements #34
Conversation
…pdate README The changes include: - Replace tkinter with customtkinter for the GUI - Add a fade to black effect when skipping reminders - Update the README file with revised instructions and images - Make minor bug fixes and improvements
… REQUIREMENTS.txt to include pycaw The changes include: * Importing necessary modules from comtypes and pycaw * Adding methods to get and set the volume level * Adding a method to create a sequence of volume fade values * Modifying the fade_to_black method to include volume fading * Adding an icon to the application window * Updating REQUIREMENTS.txt to include pycaw The blink-eye-reminder-btn.png image file was removed without a replacement.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Please don't merge until I review it. I have to wait until the electricity comes back to test it. |
Anyway, I have read the code with my phone. Can we add multiple fonts? As we don't have Segoe UI in fedora. |
What font you're trying to mean? |
Do we have Helvetica on Fedora? Segoe UI seems really cool to see so added, it's changeable obviously! |
Helvatica isn't pre-installed on Fedora. The ideal solution would be
|
In that case use of which would be ideal? Helvetica was used before! |
is there any way to add fallback fonts like we do in CSS? I never really worked with tkinter. |
Maybe we can import font from |
Okay! I have reviewed it. But I want to run the script and test but I don't have electricity right now. I will test and review immediately after the electricity come back. Anyway if you want to use ".ttf" files don't use something like Segoe UI. It will cause licensing issues. Use a font that's open source like Noto Sans or Ubuntu. |
Roger that! 🫡 |
Build script needs to be changed and comtypes isn't available on linux |
Update Name: BlinkEye
Version: 1.4.0
Release: 1%{?dist}
Summary: Blink Eye is a minimalist eye care reminder app designed to reduce eye strain during extended screen usage.
License: MIT
URL: https://github.com/nomandhoni-cs/blink-eye
%description
Blink Eye is a minimalist eye care reminder app designed to reduce eye strain during extended screen usage. It provides customization timers, full-screen popups, audio mute functionality for a seamless user experience.
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
cp dist/%{name} $RPM_BUILD_ROOT/%{_bindir}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%{_bindir}/%{name}
%license LICENSE.txt
%changelog
* Mon Apr 01 2024 Moheshwar Amarnath Biswas
- First Linux Version and #!/usr/bin/env bash
ver="1.4.0"
echo Installing Dependencies...
sudo dnf install -y rpmdevtools rpmlint python3-devel python3-pip python3-tkinter
pip install wheel
pip install -r REQUIREMENTS.txt
pip install pyinstaller
echo Building the executable...
pyinstaller --name BlinkEye --onefile --windowed --add-data="./Assets/*:./Assets" --hidden-import plyer.platforms.linux.notification --clean blink-eye.py
echo Building the installer...
rpmdev-setuptree
cp -r ./* ~/rpmbuild/BUILD
cp ../LICENSE.txt ~/rpmbuild/BUILD/LICENSE.txt
rpmbuild -bb ./BlinkEye_Fedora.spec
rm -rf ~/rpmbuild/BUILD
mkdir -p ./ExecutableFile/
mv ~/rpmbuild/RPMS/x86_64/BlinkEye-$ver-1.fc39.x86_64.rpm ./ExecutableFile/BlinkEye-$ver-1.fc39.x86_64.rpm and if else block to stop importing |
In that case, volume feature might not be available for Linux! Is there any way you know which is OS Independent? I can't find any actually... |
The spec file won't be able to access the LINCENSE.txt as it's one step back in PATH, I think? Should I still edit it? |
The spec file isn't reading from current directory it's reading from As you can see I copied the |
I can't find any either. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! You should add if else statement to comtype imports and merge it we can make that feature cross platform later
Yeah thinking to do so, trying to figure out the exception type! |
You should try something like this import platform
if platform.system() == "Windows":
# import comtypes and implement volume feature |
- Import platform module to determine the operating system - Add a flag 'isWindows' to store the result of the platform check - Add a check for the operating system before attempting to control the volume - If the operating system is not Windows, the volume control functions return None - Add a check for None before attempting to set the volume Update .gitignore - Add various files and directories related to package building, testing, and distribution - Add PyInstaller files and directories - Add Installer logs - Add Unit test / coverage reports - Add Translations - Add Django, Flask, Scrapy, and Sphinx files and directories - Add PyBuilder files and directories - Add Jupyter Notebook files and directories - Add IPython files and directories - Add pyenv files and directories - Add pipenv files and directories - Add PEP 582 files - Add Celery files and directories - Add SageMath files and directories - Add Environments files and directories - Add Spyder and Rope project settings - Add mkdocs documentation - Add mypy files and directories - Add Pyre type checker files and directories - Add Replit files and directories - Add Other Files - Remove specific references to blink-eye.exe and /build and /dist directories from .gitignore Remove unused imports - Remove unused 'ctypes' import from blink-eye.py - Remove unused 'datetime' import from blink-eye.py
Modified Uninstaller icon path
Let it use default os font |
* Added `NotoSans-Regular` and `Consolas` as Fonts for GUI and to be imported from `.ttf`
* Fixed font path on import
@fluentmoheshwar Done! It will import |
Awesome! |
I have tested your changes. Issues with the new changes you made,
Here is our figma file, you can get color code and icon and spacing from here |
Co-authored-by: Noman Dhoni <[email protected]>
• Full screen pop up will be fixed soon in new commit from my PC and it's totally not a customtkinter issue I think. |
…from Break Window
Skip this time
timer issue-Previously in the case of skip the remaining 20 seconds used to add with the next 20 minute on interval.
blink-eye-reminder-btn.png
and used Button instead with 2 skip images (fordark
andlight
mode)dark
andlight
) as well as the widgets color on ithold_the_program
instead oftime.sleep
to wait the program in order to exclude remaining time in the case ofskip
--icon
for Fedora, as Refactor Code, Update.gitignore
, Add Fallback Installation Command #29 (review)logo
and textBlink Eye
on the top right side in the Break Screen@fluentmoheshwar Please consider reviewing Fedora related files (especially, ./application/BlinkEye_Fedora.spec) once again, as some lines were deleted while merging #26!