diff --git a/x11-toolkits/Makefile b/x11-toolkits/Makefile index 2d3ad2b6eeed..d19ca278a99f 100644 --- a/x11-toolkits/Makefile +++ b/x11-toolkits/Makefile @@ -1,262 +1,263 @@ COMMENT = X11 toolkits SUBDIR += SoXt SUBDIR += Xaw3d SUBDIR += Xmt SUBDIR += amtk SUBDIR += aquamarine SUBDIR += blt SUBDIR += bwidget SUBDIR += color-widgets-qt5 SUBDIR += como SUBDIR += copperspice SUBDIR += ctk SUBDIR += fltk SUBDIR += fox16 SUBDIR += fox17 SUBDIR += fxscintilla SUBDIR += gdl SUBDIR += girara SUBDIR += gnome-pty-helper SUBDIR += gnustep-back SUBDIR += gnustep-gui SUBDIR += granite SUBDIR += granite7 SUBDIR += gstreamer1-plugins-gtk SUBDIR += gstreamer1-plugins-pango SUBDIR += gtk-layer-shell SUBDIR += gtk-session-lock SUBDIR += gtk-sharp-beans SUBDIR += gtk-sharp20 SUBDIR += gtk-sharp30 SUBDIR += gtk20 SUBDIR += gtk30 SUBDIR += gtk4-layer-shell SUBDIR += gtk40 SUBDIR += gtkd SUBDIR += gtkdatabox SUBDIR += gtkextra SUBDIR += gtkglarea2 SUBDIR += gtkglext SUBDIR += gtkglextmm SUBDIR += gtkimageview SUBDIR += gtkmm24 SUBDIR += gtkmm30 SUBDIR += gtksourceview2 SUBDIR += gtksourceview3 SUBDIR += gtksourceview4 SUBDIR += gtksourceview5 SUBDIR += gtksourceviewmm3 SUBDIR += guile-gnome-platform SUBDIR += imgui SUBDIR += irrlicht SUBDIR += itk SUBDIR += iwidgets SUBDIR += kddockwidgets SUBDIR += kf5-attica SUBDIR += kf5-kcompletion SUBDIR += kf5-kconfigwidgets SUBDIR += kf5-kdesignerplugin SUBDIR += kf5-kguiaddons SUBDIR += kf5-kirigami2 SUBDIR += kf5-kitemviews SUBDIR += kf5-kjobwidgets SUBDIR += kf5-ktextwidgets SUBDIR += kf5-kwidgetsaddons SUBDIR += kf5-kxmlgui SUBDIR += kf6-attica SUBDIR += kf6-kcompletion SUBDIR += kf6-kconfigwidgets SUBDIR += kf6-kguiaddons SUBDIR += kf6-kirigami SUBDIR += kf6-kitemviews SUBDIR += kf6-kjobwidgets SUBDIR += kf6-ktextwidgets SUBDIR += kf6-kwidgetsaddons SUBDIR += kf6-kxmlgui SUBDIR += kirigami-addons SUBDIR += kirigami-addons-devel SUBDIR += kproperty SUBDIR += lesstif SUBDIR += libXaw SUBDIR += libXmu SUBDIR += libXt SUBDIR += libadwaita SUBDIR += libdazzle SUBDIR += libdecor SUBDIR += libgdiplus SUBDIR += libhandy SUBDIR += libhandy0 SUBDIR += libshumate SUBDIR += libunique3 SUBDIR += libwnck SUBDIR += libwnck3 SUBDIR += libxaw3dxft SUBDIR += linux-c7-gtk2 SUBDIR += linux-c7-gtk3 SUBDIR += linux-c7-openmotif SUBDIR += linux-c7-pango SUBDIR += linux-c7-qt-x11 SUBDIR += linux-c7-tk85 SUBDIR += linux-rl9-gtk2 SUBDIR += linux-rl9-gtk3 SUBDIR += linux-rl9-pango SUBDIR += movingmotif SUBDIR += mowitz SUBDIR += mygui SUBDIR += mygui-dummy SUBDIR += mygui-ogre SUBDIR += mygui-opengl SUBDIR += nanogui SUBDIR += neXtaw SUBDIR += ntk SUBDIR += nuklear SUBDIR += ocaml-graphics SUBDIR += ocaml-lablgtk2 SUBDIR += ocaml-lablgtk3 SUBDIR += ocaml-labltk SUBDIR += open-motif SUBDIR += open-motif-devel SUBDIR += osm-gps-map SUBDIR += otk SUBDIR += p5-Alien-wxWidgets SUBDIR += p5-Gtk2 SUBDIR += p5-Gtk2-Chmod SUBDIR += p5-Gtk2-Ex-FormFactory SUBDIR += p5-Gtk2-Ex-PodViewer SUBDIR += p5-Gtk2-Ex-Simple-List SUBDIR += p5-Gtk2-Ex-Utils SUBDIR += p5-Gtk2-ImageView SUBDIR += p5-Gtk2-PathButtonBar SUBDIR += p5-Gtk3 SUBDIR += p5-Gtk3-ImageView SUBDIR += p5-Gtk3-SimpleList SUBDIR += p5-Pango SUBDIR += p5-Prima SUBDIR += p5-Test-Tk SUBDIR += p5-Tk SUBDIR += p5-Tk-Action SUBDIR += p5-Tk-Autoscroll SUBDIR += p5-Tk-ColourChooser SUBDIR += p5-Tk-Contrib SUBDIR += p5-Tk-CursorControl SUBDIR += p5-Tk-DKW SUBDIR += p5-Tk-Date SUBDIR += p5-Tk-DynaTabFrame SUBDIR += p5-Tk-Enscript SUBDIR += p5-Tk-FontDialog SUBDIR += p5-Tk-GBARR SUBDIR += p5-Tk-Getopt SUBDIR += p5-Tk-HistEntry SUBDIR += p5-Tk-JComboBox SUBDIR += p5-Tk-ResizeButton SUBDIR += p5-Tk-Role-Dialog SUBDIR += p5-Tk-Role-HasWidgets SUBDIR += p5-Tk-Splashscreen SUBDIR += p5-Tk-Sugar SUBDIR += p5-Tk-TableMatrix SUBDIR += p5-Tk-ToolBar SUBDIR += p5-Tk-WaitBox SUBDIR += pango SUBDIR += pangolin SUBDIR += pangomm SUBDIR += pangox-compat SUBDIR += plasma5-kdeplasma-addons SUBDIR += plasma6-kdeplasma-addons SUBDIR += plib SUBDIR += py-AnyQt SUBDIR += py-Pmw SUBDIR += py-awesometkinter + SUBDIR += py-customtkinter SUBDIR += py-easygui SUBDIR += py-fltk SUBDIR += py-guietta SUBDIR += py-python-xlib SUBDIR += py-qt5-chart SUBDIR += py-qt6-chart SUBDIR += py-qt6-datavis3d SUBDIR += py-tkinter SUBDIR += py-tktreectrl SUBDIR += py-wxPython4 SUBDIR += pythonqt SUBDIR += qhotkey SUBDIR += qml-box2d SUBDIR += qt5-charts SUBDIR += qt5-datavis3d SUBDIR += qt5-declarative SUBDIR += qt5-declarative-test SUBDIR += qt5-gamepad SUBDIR += qt5-gui SUBDIR += qt5-quick3d SUBDIR += qt5-quickcontrols SUBDIR += qt5-quickcontrols2 SUBDIR += qt5-quicktimeline SUBDIR += qt5-uiplugin SUBDIR += qt5-virtualkeyboard SUBDIR += qt5-widgets SUBDIR += qt5pas SUBDIR += qt6-charts SUBDIR += qt6-datavis3d SUBDIR += qt6-declarative SUBDIR += qt6-graphs SUBDIR += qt6-quick3d SUBDIR += qt6-quicktimeline SUBDIR += qt6-shadertools SUBDIR += qt6-virtualkeyboard SUBDIR += qt6pas SUBDIR += qtermwidget SUBDIR += qtermwidget-qt5 SUBDIR += qwt5-qt5 SUBDIR += qwt6 SUBDIR += redkite SUBDIR += rep-gtk2 SUBDIR += rubygem-gdk3 SUBDIR += rubygem-gdk4 SUBDIR += rubygem-gtk2 SUBDIR += rubygem-gtk3 SUBDIR += rubygem-gtk4 SUBDIR += rubygem-gtksourceview3 SUBDIR += rubygem-gtksourceview4 SUBDIR += rubygem-pango SUBDIR += rubygem-poppler SUBDIR += rubygem-tk SUBDIR += rubygem-uh SUBDIR += rubygem-vte3 SUBDIR += rubygem-vte4 SUBDIR += scenefx SUBDIR += scintilla SUBDIR += sdl2_pango SUBDIR += sdl_pango SUBDIR += shared-desktop-ontologies SUBDIR += skinlf SUBDIR += soqt SUBDIR += swt SUBDIR += tepl6 SUBDIR += termit SUBDIR += tix SUBDIR += tk-wrapper SUBDIR += tk86 SUBDIR += tk87 SUBDIR += tkdnd SUBDIR += tkshape SUBDIR += tktable SUBDIR += tktray SUBDIR += tktreectrl SUBDIR += unique SUBDIR += viewklass SUBDIR += vte SUBDIR += vte3 SUBDIR += wlroots SUBDIR += wlroots-hyprland SUBDIR += wlroots015 SUBDIR += wlroots016 SUBDIR += wlroots017 SUBDIR += wmapp SUBDIR += wxgtk30 SUBDIR += wxgtk32 SUBDIR += xbae SUBDIR += xforms SUBDIR += xmhtml SUBDIR += xwallpaper SUBDIR += ztoolkit .include diff --git a/x11-toolkits/py-customtkinter/Makefile b/x11-toolkits/py-customtkinter/Makefile new file mode 100644 index 000000000000..8a76da3f78e9 --- /dev/null +++ b/x11-toolkits/py-customtkinter/Makefile @@ -0,0 +1,22 @@ +PORTNAME= customtkinter +DISTVERSION= 5.2.2 +CATEGORIES= x11-toolkits python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Modern and customizable python UI-library based on Tkinter +WWW= https://customtkinter.tomschimansky.com/ + +LICENSE= PSFL + +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} + +USES= python +USE_PYTHON= pep517 autoplist + +NO_ARCH= yes + +.include diff --git a/x11-toolkits/py-customtkinter/distinfo b/x11-toolkits/py-customtkinter/distinfo new file mode 100644 index 000000000000..67fc914c85e6 --- /dev/null +++ b/x11-toolkits/py-customtkinter/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1723403379 +SHA256 (customtkinter-5.2.2.tar.gz) = fd8db3bafa961c982ee6030dba80b4c2e25858630756b513986db19113d8d207 +SIZE (customtkinter-5.2.2.tar.gz) = 261999 diff --git a/x11-toolkits/py-customtkinter/files/patch-customtkinter_windows_widgets_appearance__mode_appearance__mode__tracker.py b/x11-toolkits/py-customtkinter/files/patch-customtkinter_windows_widgets_appearance__mode_appearance__mode__tracker.py new file mode 100644 index 000000000000..95c255b27584 --- /dev/null +++ b/x11-toolkits/py-customtkinter/files/patch-customtkinter_windows_widgets_appearance__mode_appearance__mode__tracker.py @@ -0,0 +1,19 @@ +--- customtkinter/windows/widgets/appearance_mode/appearance_mode_tracker.py.orig 2024-08-11 19:14:14 UTC ++++ customtkinter/windows/widgets/appearance_mode/appearance_mode_tracker.py +@@ -1,6 +1,6 @@ from typing import Callable + import tkinter + from typing import Callable +-import darkdetect ++#import darkdetect + + + class AppearanceModeTracker: +@@ -45,7 +45,7 @@ class AppearanceModeTracker: + @staticmethod + def detect_appearance_mode() -> int: + try: +- if darkdetect.theme() == "Dark": ++ if True: + return 1 # Dark + else: + return 0 # Light diff --git a/x11-toolkits/py-customtkinter/pkg-descr b/x11-toolkits/py-customtkinter/pkg-descr new file mode 100644 index 000000000000..2a2538b4c2fc --- /dev/null +++ b/x11-toolkits/py-customtkinter/pkg-descr @@ -0,0 +1 @@ +CustomTkinter is a modern and customizable python UI-library based on Tkinter.