dynamic-icon-engine 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- dynamic_icon_engine/__init__.py +37 -0
- dynamic_icon_engine/_version.py +1 -0
- dynamic_icon_engine/animation.py +247 -0
- dynamic_icon_engine/appearance.py +77 -0
- dynamic_icon_engine/controller.py +266 -0
- dynamic_icon_engine/errors.py +34 -0
- dynamic_icon_engine/graphic_set.py +436 -0
- dynamic_icon_engine/renderer.py +228 -0
- dynamic_icon_engine/resources/__init__.py +0 -0
- dynamic_icon_engine/resources/default/manifest.json +84 -0
- dynamic_icon_engine/resources/default/symbol.png +0 -0
- dynamic_icon_engine/resources/default/symbol_16.png +0 -0
- dynamic_icon_engine/resources/default/symbol_20.png +0 -0
- dynamic_icon_engine/resources/default/symbol_24.png +0 -0
- dynamic_icon_engine/resources/default/symbol_32.png +0 -0
- dynamic_icon_engine/resources/default/symbol_ext.png +0 -0
- dynamic_icon_engine/resources/default/symbol_ext_16.png +0 -0
- dynamic_icon_engine/resources/default/symbol_ext_20.png +0 -0
- dynamic_icon_engine/resources/default/symbol_ext_24.png +0 -0
- dynamic_icon_engine/resources/default/symbol_ext_32.png +0 -0
- dynamic_icon_engine/resources/default/symbol_ext_clearance.png +0 -0
- dynamic_icon_engine/resources/default/symbol_ext_clearance_16.png +0 -0
- dynamic_icon_engine/resources/default/symbol_ext_clearance_20.png +0 -0
- dynamic_icon_engine/resources/default/symbol_ext_clearance_24.png +0 -0
- dynamic_icon_engine/resources/default/symbol_ext_clearance_32.png +0 -0
- dynamic_icon_engine/testlab/__init__.py +4 -0
- dynamic_icon_engine/testlab/__main__.py +87 -0
- dynamic_icon_engine/testlab/palette.py +96 -0
- dynamic_icon_engine/testlab/window.py +417 -0
- dynamic_icon_engine-1.0.0.dist-info/METADATA +176 -0
- dynamic_icon_engine-1.0.0.dist-info/RECORD +35 -0
- dynamic_icon_engine-1.0.0.dist-info/WHEEL +5 -0
- dynamic_icon_engine-1.0.0.dist-info/entry_points.txt +2 -0
- dynamic_icon_engine-1.0.0.dist-info/licenses/LICENSE +21 -0
- dynamic_icon_engine-1.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,417 @@
|
|
|
1
|
+
"""Standalone test window. Uses only the public engine API and simulated appearances."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from PySide6.QtCore import QSize, Qt, Signal
|
|
6
|
+
from PySide6.QtGui import QColor, QIcon, QImage, QPixmap
|
|
7
|
+
from PySide6.QtWidgets import (
|
|
8
|
+
QCheckBox, QColorDialog, QComboBox, QDoubleSpinBox, QFormLayout, QFrame, QGridLayout, QGroupBox,
|
|
9
|
+
QHBoxLayout, QLabel, QLineEdit, QMainWindow, QPlainTextEdit, QPushButton, QScrollArea, QSpinBox,
|
|
10
|
+
QSizePolicy, QSystemTrayIcon, QTabWidget, QVBoxLayout, QWidget,
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
from dynamic_icon_engine import (
|
|
14
|
+
ANIMATION_NONE, AnimationDefinition, DynamicIconEngineError, IconAppearance, IconController,
|
|
15
|
+
IconRenderer, normalize_hex_color,
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
from .palette import PROPOSALS, SURROUNDINGS, TEST_CASES, contrast_ratio
|
|
19
|
+
|
|
20
|
+
PREVIEW_SIZES = (16, 20, 24, 32, 64)
|
|
21
|
+
ZOOM_SIZES = (16, 20, 24)
|
|
22
|
+
ZOOM = 6
|
|
23
|
+
CUSTOM_NAME = "custom"
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def exact_pixmap(icon_or_image: QIcon | QImage, size: int, widget: QWidget) -> QPixmap:
|
|
27
|
+
"""Pixmap that occupies exactly ``size`` physical pixels on the widget's screen."""
|
|
28
|
+
if isinstance(icon_or_image, QIcon):
|
|
29
|
+
pixmap = icon_or_image.pixmap(QSize(size, size), 1.0)
|
|
30
|
+
else:
|
|
31
|
+
pixmap = QPixmap.fromImage(icon_or_image)
|
|
32
|
+
pixmap.setDevicePixelRatio(widget.devicePixelRatioF())
|
|
33
|
+
return pixmap
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def zoomed_pixmap(icon: QIcon, size: int, factor: int) -> QPixmap:
|
|
37
|
+
image = icon.pixmap(QSize(size, size), 1.0).toImage()
|
|
38
|
+
return QPixmap.fromImage(image.scaled(size * factor, size * factor,
|
|
39
|
+
Qt.AspectRatioMode.IgnoreAspectRatio,
|
|
40
|
+
Qt.TransformationMode.FastTransformation))
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
class ColorField(QWidget):
|
|
44
|
+
"""Hex input plus colour dialog button."""
|
|
45
|
+
|
|
46
|
+
changed = Signal()
|
|
47
|
+
|
|
48
|
+
def __init__(self, value: str, parent: QWidget | None = None) -> None:
|
|
49
|
+
super().__init__(parent)
|
|
50
|
+
self.edit = QLineEdit(value)
|
|
51
|
+
self.edit.setMaxLength(7)
|
|
52
|
+
self.edit.setFixedWidth(90)
|
|
53
|
+
self.swatch = QPushButton("Wählen …")
|
|
54
|
+
layout = QHBoxLayout(self)
|
|
55
|
+
layout.setContentsMargins(0, 0, 0, 0)
|
|
56
|
+
layout.addWidget(self.edit)
|
|
57
|
+
layout.addWidget(self.swatch)
|
|
58
|
+
layout.addStretch(1)
|
|
59
|
+
self.edit.editingFinished.connect(self.changed)
|
|
60
|
+
self.swatch.clicked.connect(self._pick)
|
|
61
|
+
|
|
62
|
+
def text(self) -> str:
|
|
63
|
+
return self.edit.text()
|
|
64
|
+
|
|
65
|
+
def set_text(self, value: str) -> None:
|
|
66
|
+
self.edit.setText(value)
|
|
67
|
+
|
|
68
|
+
def _pick(self) -> None:
|
|
69
|
+
try:
|
|
70
|
+
initial = QColor(normalize_hex_color(self.edit.text()))
|
|
71
|
+
except DynamicIconEngineError:
|
|
72
|
+
initial = QColor("#000000")
|
|
73
|
+
color = QColorDialog.getColor(initial, self, "Farbe wählen")
|
|
74
|
+
if color.isValid():
|
|
75
|
+
self.edit.setText(color.name(QColor.NameFormat.HexRgb).upper())
|
|
76
|
+
self.changed.emit()
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
class Surrounding(QFrame):
|
|
80
|
+
"""Icon previews at real pixel sizes on a fixed surrounding colour."""
|
|
81
|
+
|
|
82
|
+
def __init__(self, title: str, color: str, parent: QWidget | None = None) -> None:
|
|
83
|
+
super().__init__(parent)
|
|
84
|
+
text_color = "#000000" if color.upper() in ("#F3F3F3", "#FFFFFF") else "#FFFFFF"
|
|
85
|
+
self.setStyleSheet(f"Surrounding {{ background: {color}; border-radius: 6px; }}"
|
|
86
|
+
f" QLabel {{ color: {text_color}; background: transparent; }}")
|
|
87
|
+
layout = QVBoxLayout(self)
|
|
88
|
+
layout.addWidget(QLabel(f"Umgebung {title} ({color})"))
|
|
89
|
+
row = QHBoxLayout()
|
|
90
|
+
self.labels: dict[int, QLabel] = {}
|
|
91
|
+
for size in PREVIEW_SIZES:
|
|
92
|
+
box = QVBoxLayout()
|
|
93
|
+
label = QLabel()
|
|
94
|
+
label.setFixedSize(68, 68)
|
|
95
|
+
label.setAlignment(Qt.AlignmentFlag.AlignCenter)
|
|
96
|
+
box.addWidget(label)
|
|
97
|
+
caption = QLabel(f"{size} px")
|
|
98
|
+
caption.setAlignment(Qt.AlignmentFlag.AlignCenter)
|
|
99
|
+
box.addWidget(caption)
|
|
100
|
+
row.addLayout(box)
|
|
101
|
+
self.labels[size] = label
|
|
102
|
+
zoom_row = QHBoxLayout()
|
|
103
|
+
self.zoom_labels: dict[int, QLabel] = {}
|
|
104
|
+
for size in ZOOM_SIZES:
|
|
105
|
+
label = QLabel()
|
|
106
|
+
label.setToolTip(f"{size} px, {ZOOM}x vergrößert (Nearest Neighbour)")
|
|
107
|
+
zoom_row.addWidget(label)
|
|
108
|
+
self.zoom_labels[size] = label
|
|
109
|
+
zoom_row.addStretch(1)
|
|
110
|
+
layout.addLayout(row)
|
|
111
|
+
layout.addWidget(QLabel(f"16/20/24 px, {ZOOM}x vergrößert"))
|
|
112
|
+
layout.addLayout(zoom_row)
|
|
113
|
+
|
|
114
|
+
def show_icon(self, icon: QIcon) -> None:
|
|
115
|
+
for size, label in self.labels.items():
|
|
116
|
+
label.setPixmap(exact_pixmap(icon, size, self))
|
|
117
|
+
for size, label in self.zoom_labels.items():
|
|
118
|
+
label.setPixmap(zoomed_pixmap(icon, size, ZOOM))
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
class ComparisonView(QWidget):
|
|
122
|
+
"""Static comparison of all reference cases at real sizes (plus minimum-opacity frame)."""
|
|
123
|
+
|
|
124
|
+
def __init__(self, renderer: IconRenderer, controller: IconController, parent: QWidget | None = None) -> None:
|
|
125
|
+
super().__init__(parent)
|
|
126
|
+
self._renderer = renderer
|
|
127
|
+
self._controller = controller
|
|
128
|
+
outer = QVBoxLayout(self)
|
|
129
|
+
scroll = QScrollArea()
|
|
130
|
+
scroll.setWidgetResizable(True)
|
|
131
|
+
outer.addWidget(scroll, 1)
|
|
132
|
+
content = QWidget()
|
|
133
|
+
scroll.setWidget(content)
|
|
134
|
+
self.grid = QGridLayout(content)
|
|
135
|
+
self.grid.setAlignment(Qt.AlignmentFlag.AlignTop | Qt.AlignmentFlag.AlignLeft)
|
|
136
|
+
headers = ["Testfall (nur Host-Referenz)", "Hintergrund / Symbol", "Kontrast", "Animation",
|
|
137
|
+
"hell: 16 20 24 32", "dunkel: 16 20 24 32", "Min-Frame (hell/dunkel)", "16 / 24 px ×3"]
|
|
138
|
+
for col, text in enumerate(headers):
|
|
139
|
+
label = QLabel(f"<b>{text}</b>")
|
|
140
|
+
self.grid.addWidget(label, 0, col)
|
|
141
|
+
self._cells: list[tuple[int, object]] = []
|
|
142
|
+
for row, case in enumerate(TEST_CASES, start=1):
|
|
143
|
+
a = case.appearance()
|
|
144
|
+
self.grid.addWidget(QLabel(case.name), row, 0)
|
|
145
|
+
ext = " + Ext" if a.symbol_ext else ""
|
|
146
|
+
self.grid.addWidget(QLabel(f"{a.background_color} / {a.symbol_color}{ext}"), row, 1)
|
|
147
|
+
self.grid.addWidget(QLabel(f"{contrast_ratio(a.background_color, a.symbol_color):.2f}:1"), row, 2)
|
|
148
|
+
self.grid.addWidget(QLabel(a.animation), row, 3)
|
|
149
|
+
self._cells.append((row, a))
|
|
150
|
+
notes = QPlainTextEdit()
|
|
151
|
+
notes.setReadOnly(True)
|
|
152
|
+
notes.setPlainText(
|
|
153
|
+
"Kontrast = WCAG-Luminanzkontrast Hintergrund/Symbol (sagt nichts über Farbtonunterschiede; "
|
|
154
|
+
"keine Farbblindheitsgarantie).\n\nVorschläge (Bedeutung unverändert):\n"
|
|
155
|
+
+ "\n".join(f"- {title}: {text}" for title, text in PROPOSALS)
|
|
156
|
+
)
|
|
157
|
+
notes.setFixedHeight(150)
|
|
158
|
+
outer.addWidget(notes)
|
|
159
|
+
self.refresh()
|
|
160
|
+
|
|
161
|
+
def _strip(self, a: IconAppearance, color: str, opacity: float, sizes=(16, 20, 24, 32)) -> QWidget:
|
|
162
|
+
frame = QFrame()
|
|
163
|
+
frame.setStyleSheet(f"background: {color};")
|
|
164
|
+
frame.setSizePolicy(QSizePolicy.Policy.Fixed, QSizePolicy.Policy.Fixed)
|
|
165
|
+
layout = QHBoxLayout(frame)
|
|
166
|
+
layout.setContentsMargins(6, 4, 6, 4)
|
|
167
|
+
for size in sizes:
|
|
168
|
+
label = QLabel()
|
|
169
|
+
label.setPixmap(exact_pixmap(self._renderer.render_image(a, size, background_opacity=opacity), size, self))
|
|
170
|
+
layout.addWidget(label)
|
|
171
|
+
return frame
|
|
172
|
+
|
|
173
|
+
def refresh(self) -> None:
|
|
174
|
+
registry = self._controller.registry
|
|
175
|
+
for row, a in self._cells:
|
|
176
|
+
for col in (4, 5, 6, 7):
|
|
177
|
+
item = self.grid.itemAtPosition(row, col)
|
|
178
|
+
if item is not None and item.widget() is not None:
|
|
179
|
+
item.widget().deleteLater()
|
|
180
|
+
self.grid.addWidget(self._strip(a, SURROUNDINGS["hell"], 1.0), row, 4)
|
|
181
|
+
self.grid.addWidget(self._strip(a, SURROUNDINGS["dunkel"], 1.0), row, 5)
|
|
182
|
+
definition = registry.get(a.animation) if a.animation in registry else None
|
|
183
|
+
if definition is not None:
|
|
184
|
+
both = QWidget()
|
|
185
|
+
layout = QHBoxLayout(both)
|
|
186
|
+
layout.setContentsMargins(0, 0, 0, 0)
|
|
187
|
+
for color in SURROUNDINGS.values():
|
|
188
|
+
layout.addWidget(self._strip(a, color, definition.min_opacity, sizes=(16, 24)))
|
|
189
|
+
self.grid.addWidget(both, row, 6)
|
|
190
|
+
else:
|
|
191
|
+
self.grid.addWidget(QLabel("–"), row, 6)
|
|
192
|
+
zoom = QWidget()
|
|
193
|
+
layout = QHBoxLayout(zoom)
|
|
194
|
+
layout.setContentsMargins(0, 0, 0, 0)
|
|
195
|
+
icon = self._renderer.render_icon(a)
|
|
196
|
+
for size in (16, 24):
|
|
197
|
+
label = QLabel()
|
|
198
|
+
label.setPixmap(zoomed_pixmap(icon, size, 3))
|
|
199
|
+
layout.addWidget(label)
|
|
200
|
+
self.grid.addWidget(zoom, row, 7)
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
class TestLabWindow(QMainWindow):
|
|
204
|
+
"""Small test lab: appearance inputs, animation parameters, previews, comparison, tray test."""
|
|
205
|
+
|
|
206
|
+
def __init__(self) -> None:
|
|
207
|
+
super().__init__()
|
|
208
|
+
self.setWindowTitle("Dynamic Icon Engine – Testlabor")
|
|
209
|
+
self.controller = IconController(parent=self)
|
|
210
|
+
self.renderer = self.controller.renderer
|
|
211
|
+
self._tray: QSystemTrayIcon | None = None
|
|
212
|
+
|
|
213
|
+
tabs = QTabWidget()
|
|
214
|
+
self.setCentralWidget(tabs)
|
|
215
|
+
self.tabs = tabs
|
|
216
|
+
tabs.addTab(self._build_preview_tab(), "Vorschau")
|
|
217
|
+
self.comparison = ComparisonView(self.renderer, self.controller)
|
|
218
|
+
tabs.addTab(self.comparison, "Vergleich Farbkombinationen")
|
|
219
|
+
|
|
220
|
+
self.controller.iconChanged.connect(self._on_icon)
|
|
221
|
+
self.controller.animationFinished.connect(lambda: self._set_status("Endliche Animation beendet."))
|
|
222
|
+
self._load_definition_into_inputs("pulse_slow")
|
|
223
|
+
self.apply_case(0)
|
|
224
|
+
|
|
225
|
+
# -- UI construction ---------------------------------------------------
|
|
226
|
+
def _build_preview_tab(self) -> QWidget:
|
|
227
|
+
page = QWidget()
|
|
228
|
+
root = QHBoxLayout(page)
|
|
229
|
+
left = QVBoxLayout()
|
|
230
|
+
root.addLayout(left, 0)
|
|
231
|
+
|
|
232
|
+
look = QGroupBox("Darstellung (IconAppearance)")
|
|
233
|
+
form = QFormLayout(look)
|
|
234
|
+
self.case_combo = QComboBox()
|
|
235
|
+
self.case_combo.addItems([c.name for c in TEST_CASES])
|
|
236
|
+
self.case_combo.activated.connect(self.apply_case)
|
|
237
|
+
form.addRow("Testfall laden", self.case_combo)
|
|
238
|
+
self.bg_field = ColorField("#103C85")
|
|
239
|
+
self.fg_field = ColorField("#FFFFFF")
|
|
240
|
+
self.bg_field.changed.connect(self.apply_appearance)
|
|
241
|
+
self.fg_field.changed.connect(self.apply_appearance)
|
|
242
|
+
form.addRow("background_color", self.bg_field)
|
|
243
|
+
form.addRow("symbol_color", self.fg_field)
|
|
244
|
+
self.ext_box = QCheckBox("symbol_ext anzeigen")
|
|
245
|
+
self.ext_box.toggled.connect(self.apply_appearance)
|
|
246
|
+
form.addRow("", self.ext_box)
|
|
247
|
+
self.anim_combo = QComboBox()
|
|
248
|
+
self.anim_combo.addItems(self.controller.registry.names())
|
|
249
|
+
self.anim_combo.activated.connect(self._on_animation_selected)
|
|
250
|
+
form.addRow("animation", self.anim_combo)
|
|
251
|
+
left.addWidget(look)
|
|
252
|
+
|
|
253
|
+
params = QGroupBox(f"Animationsparameter (eigene Definition '{CUSTOM_NAME}')")
|
|
254
|
+
pform = QFormLayout(params)
|
|
255
|
+
self.min_spin = QDoubleSpinBox(decimals=2, minimum=0.0, maximum=1.0, singleStep=0.05)
|
|
256
|
+
self.max_spin = QDoubleSpinBox(decimals=2, minimum=0.0, maximum=1.0, singleStep=0.05)
|
|
257
|
+
self.period_spin = QSpinBox(minimum=200, maximum=20000, singleStep=100, suffix=" ms")
|
|
258
|
+
self.period_spin.setToolTip("Untergrenze 200 ms in der Demo: keine schnellen Stroboskope")
|
|
259
|
+
self.hold_spin = QSpinBox(minimum=0, maximum=19999, singleStep=20, suffix=" ms")
|
|
260
|
+
self.transition_combo = QComboBox()
|
|
261
|
+
self.transition_combo.addItems(["smooth", "step"])
|
|
262
|
+
self.reps_spin = QSpinBox(minimum=0, maximum=100)
|
|
263
|
+
self.reps_spin.setSpecialValueText("endlos (None)")
|
|
264
|
+
pform.addRow("min_opacity", self.min_spin)
|
|
265
|
+
pform.addRow("max_opacity", self.max_spin)
|
|
266
|
+
pform.addRow("period_ms", self.period_spin)
|
|
267
|
+
pform.addRow("hold_max_ms", self.hold_spin)
|
|
268
|
+
pform.addRow("transition", self.transition_combo)
|
|
269
|
+
pform.addRow("repetitions", self.reps_spin)
|
|
270
|
+
apply_custom = QPushButton(f"Als '{CUSTOM_NAME}' registrieren und anwenden")
|
|
271
|
+
apply_custom.clicked.connect(self.apply_custom_definition)
|
|
272
|
+
pform.addRow(apply_custom)
|
|
273
|
+
left.addWidget(params)
|
|
274
|
+
|
|
275
|
+
actions = QHBoxLayout()
|
|
276
|
+
replay = QPushButton("Replay")
|
|
277
|
+
replay.clicked.connect(self._replay)
|
|
278
|
+
stop = QPushButton("Animation stoppen")
|
|
279
|
+
stop.clicked.connect(self.controller.stop_animation)
|
|
280
|
+
actions.addWidget(replay)
|
|
281
|
+
actions.addWidget(stop)
|
|
282
|
+
left.addLayout(actions)
|
|
283
|
+
|
|
284
|
+
extras = QGroupBox("Optional")
|
|
285
|
+
eform = QVBoxLayout(extras)
|
|
286
|
+
self.window_icon_box = QCheckBox("Fenstericon folgt dem Icon (setWindowIcon)")
|
|
287
|
+
self.window_icon_box.setChecked(True)
|
|
288
|
+
eform.addWidget(self.window_icon_box)
|
|
289
|
+
self.tray_button = QPushButton("Temporären Tray-Test starten")
|
|
290
|
+
self.tray_button.clicked.connect(self.toggle_tray)
|
|
291
|
+
eform.addWidget(self.tray_button)
|
|
292
|
+
left.addWidget(extras)
|
|
293
|
+
|
|
294
|
+
self.status = QLabel()
|
|
295
|
+
self.status.setWordWrap(True)
|
|
296
|
+
self.status.setMinimumWidth(360)
|
|
297
|
+
left.addWidget(self.status)
|
|
298
|
+
left.addStretch(1)
|
|
299
|
+
|
|
300
|
+
right = QVBoxLayout()
|
|
301
|
+
root.addLayout(right, 1)
|
|
302
|
+
self.surroundings = [Surrounding(name, color) for name, color in SURROUNDINGS.items()]
|
|
303
|
+
for widget in self.surroundings:
|
|
304
|
+
right.addWidget(widget)
|
|
305
|
+
self.state_label = QLabel()
|
|
306
|
+
right.addWidget(self.state_label)
|
|
307
|
+
right.addStretch(1)
|
|
308
|
+
return page
|
|
309
|
+
|
|
310
|
+
# -- actions -------------------------------------------------------------
|
|
311
|
+
def _set_status(self, text: str, error: bool = False) -> None:
|
|
312
|
+
self.status.setStyleSheet("color: #C62828;" if error else "")
|
|
313
|
+
self.status.setText(text)
|
|
314
|
+
|
|
315
|
+
def current_appearance(self) -> IconAppearance:
|
|
316
|
+
return IconAppearance(self.bg_field.text(), self.fg_field.text(), self.ext_box.isChecked(),
|
|
317
|
+
self.anim_combo.currentText())
|
|
318
|
+
|
|
319
|
+
def apply_appearance(self) -> None:
|
|
320
|
+
try:
|
|
321
|
+
changed = self.controller.set_appearance(self.current_appearance())
|
|
322
|
+
except DynamicIconEngineError as exc:
|
|
323
|
+
self._set_status(f"Ungültig, letzter gültiger Zustand bleibt: {exc}", error=True)
|
|
324
|
+
return
|
|
325
|
+
self._set_status("Übernommen." if changed else "Unverändert (idempotent, keine Neuanimation).")
|
|
326
|
+
|
|
327
|
+
def apply_case(self, index: int) -> None:
|
|
328
|
+
case = TEST_CASES[index]
|
|
329
|
+
a = case.appearance()
|
|
330
|
+
self.case_combo.setCurrentIndex(index)
|
|
331
|
+
self.bg_field.set_text(a.background_color)
|
|
332
|
+
self.fg_field.set_text(a.symbol_color)
|
|
333
|
+
self.ext_box.blockSignals(True)
|
|
334
|
+
self.ext_box.setChecked(a.symbol_ext)
|
|
335
|
+
self.ext_box.blockSignals(False)
|
|
336
|
+
self.anim_combo.setCurrentText(a.animation)
|
|
337
|
+
self._load_definition_into_inputs(a.animation)
|
|
338
|
+
self.apply_appearance()
|
|
339
|
+
|
|
340
|
+
def _on_animation_selected(self) -> None:
|
|
341
|
+
self._load_definition_into_inputs(self.anim_combo.currentText())
|
|
342
|
+
self.apply_appearance()
|
|
343
|
+
|
|
344
|
+
def _load_definition_into_inputs(self, name: str) -> None:
|
|
345
|
+
if name == ANIMATION_NONE or name not in self.controller.registry:
|
|
346
|
+
return
|
|
347
|
+
d = self.controller.registry.get(name)
|
|
348
|
+
self.min_spin.setValue(d.min_opacity)
|
|
349
|
+
self.max_spin.setValue(d.max_opacity)
|
|
350
|
+
self.period_spin.setValue(d.period_ms)
|
|
351
|
+
self.hold_spin.setValue(d.hold_max_ms)
|
|
352
|
+
self.transition_combo.setCurrentText(d.transition)
|
|
353
|
+
self.reps_spin.setValue(d.repetitions or 0)
|
|
354
|
+
|
|
355
|
+
def apply_custom_definition(self) -> None:
|
|
356
|
+
try:
|
|
357
|
+
definition = AnimationDefinition(
|
|
358
|
+
min_opacity=self.min_spin.value(), max_opacity=self.max_spin.value(),
|
|
359
|
+
period_ms=self.period_spin.value(), transition=self.transition_combo.currentText(),
|
|
360
|
+
repetitions=self.reps_spin.value() or None, hold_max_ms=self.hold_spin.value(),
|
|
361
|
+
)
|
|
362
|
+
self.controller.registry.register(CUSTOM_NAME, definition, replace=True)
|
|
363
|
+
except DynamicIconEngineError as exc:
|
|
364
|
+
self._set_status(f"Animationsdefinition ungültig: {exc}", error=True)
|
|
365
|
+
return
|
|
366
|
+
if self.anim_combo.findText(CUSTOM_NAME) < 0:
|
|
367
|
+
self.anim_combo.addItem(CUSTOM_NAME)
|
|
368
|
+
self.anim_combo.setCurrentText(CUSTOM_NAME)
|
|
369
|
+
self.apply_appearance()
|
|
370
|
+
self.controller.replay() # pick up the (re-)registered definition
|
|
371
|
+
self._set_status(f"'{CUSTOM_NAME}' registriert und gestartet: {definition}")
|
|
372
|
+
|
|
373
|
+
def _replay(self) -> None:
|
|
374
|
+
try:
|
|
375
|
+
started = self.controller.replay()
|
|
376
|
+
except DynamicIconEngineError as exc:
|
|
377
|
+
self._set_status(str(exc), error=True)
|
|
378
|
+
return
|
|
379
|
+
self._set_status("Replay gestartet." if started else "Kein Replay (animation = none).")
|
|
380
|
+
|
|
381
|
+
def toggle_tray(self) -> None:
|
|
382
|
+
if self._tray is not None:
|
|
383
|
+
self.remove_tray()
|
|
384
|
+
return
|
|
385
|
+
if not QSystemTrayIcon.isSystemTrayAvailable():
|
|
386
|
+
self._set_status("Kein System-Tray verfügbar.", error=True)
|
|
387
|
+
return
|
|
388
|
+
self._tray = QSystemTrayIcon(self.controller.icon(), self)
|
|
389
|
+
self._tray.setToolTip("Dynamic Icon Engine – temporärer Tray-Test")
|
|
390
|
+
self.controller.iconChanged.connect(self._tray.setIcon)
|
|
391
|
+
self._tray.show()
|
|
392
|
+
self.tray_button.setText("Tray-Test beenden (Icon entfernen)")
|
|
393
|
+
self._set_status("Temporäres Tray-Icon angezeigt; wird beim Beenden entfernt.")
|
|
394
|
+
|
|
395
|
+
def remove_tray(self) -> None:
|
|
396
|
+
if self._tray is None:
|
|
397
|
+
return
|
|
398
|
+
self.controller.iconChanged.disconnect(self._tray.setIcon)
|
|
399
|
+
self._tray.hide()
|
|
400
|
+
self._tray.deleteLater()
|
|
401
|
+
self._tray = None
|
|
402
|
+
self.tray_button.setText("Temporären Tray-Test starten")
|
|
403
|
+
|
|
404
|
+
def _on_icon(self, icon: QIcon) -> None:
|
|
405
|
+
for widget in self.surroundings:
|
|
406
|
+
widget.show_icon(icon)
|
|
407
|
+
if self.window_icon_box.isChecked():
|
|
408
|
+
self.setWindowIcon(icon)
|
|
409
|
+
state = "läuft" if self.controller.is_animating else "statisch"
|
|
410
|
+
self.state_label.setText(
|
|
411
|
+
f"Animation: {state} · Hintergrunddeckkraft {self.controller.background_opacity:.2f}"
|
|
412
|
+
)
|
|
413
|
+
|
|
414
|
+
def closeEvent(self, event) -> None: # noqa: N802 (Qt API)
|
|
415
|
+
self.remove_tray()
|
|
416
|
+
self.controller.dispose()
|
|
417
|
+
super().closeEvent(event)
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: dynamic-icon-engine
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Neutral, reusable PySide6 component for dynamic (tray) icons with background opacity animation.
|
|
5
|
+
Author: marcosudau-qt
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/marcosudau-qt/dynamic-icon-engine
|
|
8
|
+
Project-URL: Repository, https://github.com/marcosudau-qt/dynamic-icon-engine
|
|
9
|
+
Project-URL: Issues, https://github.com/marcosudau-qt/dynamic-icon-engine/issues
|
|
10
|
+
Project-URL: Changelog, https://github.com/marcosudau-qt/dynamic-icon-engine/blob/main/CHANGELOG.md
|
|
11
|
+
Keywords: pyside6,qt,icon,tray,system-tray,animation
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
17
|
+
Classifier: Topic :: Software Development :: User Interfaces
|
|
18
|
+
Requires-Python: >=3.12
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
License-File: LICENSE
|
|
21
|
+
Requires-Dist: PySide6<7,>=6.8
|
|
22
|
+
Provides-Extra: test
|
|
23
|
+
Requires-Dist: pytest>=8; extra == "test"
|
|
24
|
+
Dynamic: license-file
|
|
25
|
+
|
|
26
|
+
# Dynamic Icon Engine
|
|
27
|
+
|
|
28
|
+
Kleine, eigenständige Python-/PySide6-Bibliothek für dynamische Icons – vor allem für
|
|
29
|
+
Tray-Icons, aber auch für Fenster- und andere `QIcon`-Verwendungen. Die Anwendung beschreibt
|
|
30
|
+
nur, **wie** das Icon aussehen soll (Hintergrundfarbe, Symbolfarbe, optionale Zusatzebene,
|
|
31
|
+
Animation). Die Engine rendert daraus `QIcon`s in allen üblichen Größen und liefert sie per
|
|
32
|
+
Qt-Signal aus.
|
|
33
|
+
|
|
34
|
+
*English summary: a small, neutral PySide6 library that renders tray and window icons from a
|
|
35
|
+
declarative appearance (background colour, symbol colour, optional extension layer, background
|
|
36
|
+
opacity animation) and publishes them via a Qt signal. The detailed documentation is in German.*
|
|
37
|
+
|
|
38
|
+
> **Version 1.0.0:** erste oeffentliche Version unter MIT.
|
|
39
|
+
> Installation: `pip install dynamic-icon-engine`.
|
|
40
|
+
|
|
41
|
+
## Funktionsumfang
|
|
42
|
+
|
|
43
|
+
- **Deklaratives Aussehen:** `IconAppearance(background_color, symbol_color, symbol_ext, animation)`
|
|
44
|
+
mit strenger Farbprüfung (`#RRGGBB`) – keine stillen Ersatzfarben.
|
|
45
|
+
- **Zwei Formen:** klassisches vollflächiges Quadrat mit Symbol aus einem Grafikset oder
|
|
46
|
+
`CircleProfile` (farbiger Kreis auf transparentem Grund, optional mit Kontur).
|
|
47
|
+
- **Animation der Hintergrunddeckkraft:** Presets (`pulse_slow`, `blink_fast`, `blink_triple`)
|
|
48
|
+
und eigene `AnimationDefinition`s – weich (`smooth`) oder hart (`step`), endlos oder mit fester
|
|
49
|
+
Wiederholungszahl. Das Symbol bleibt immer voll deckend.
|
|
50
|
+
- **Austauschbare Grafiksets:** Alpha-Masken für Symbol, optionale Erweiterungsebene und
|
|
51
|
+
Freistellmaske; laden aus einem Verzeichnis mit `manifest.json` oder direkt aus `QImage`s.
|
|
52
|
+
Ein eigenes, MIT-freigegebenes Standard-Grafikset des Projekturhebers ist enthalten
|
|
53
|
+
(neutrale Alpha-Masken; die Originale bleiben privat).
|
|
54
|
+
- **Ein Controller pro Icon:** `IconController` mit genau einem Timer, Signal
|
|
55
|
+
`iconChanged(QIcon)`, `animationFinished()`, `replay()`, `stop_animation()` und `dispose()`.
|
|
56
|
+
- **HiDPI-tauglich:** jedes `QIcon` enthält 16, 20, 24, 32, 48, 64, 128 und 256 px.
|
|
57
|
+
- **Testlabor** zum Ausprobieren von Farben und Animationen (`dynamic-icon-testlab`).
|
|
58
|
+
- Außer PySide6 nur die Standardbibliothek; der Kern importiert kein `QtWidgets`.
|
|
59
|
+
|
|
60
|
+
## Voraussetzungen
|
|
61
|
+
|
|
62
|
+
- Python **3.12** oder neuer (`requires-python >= 3.12`; geprüft mit Python 3.12).
|
|
63
|
+
- PySide6 `>= 6.8, < 7` (wird bei der Installation mitinstalliert).
|
|
64
|
+
- Für `IconController` und `render_icon()` eine `QGuiApplication` bzw. `QApplication`;
|
|
65
|
+
für Tray-Icons `QApplication` (Qt Widgets).
|
|
66
|
+
- Entwickelt und geprüft unter Windows; andere Plattformen sind nicht gesondert geprüft.
|
|
67
|
+
|
|
68
|
+
## Installation
|
|
69
|
+
|
|
70
|
+
Das Paket ist **noch nicht auf PyPI** verfügbar. Bis zur Freigabe wird es lokal aus dem
|
|
71
|
+
Quellverzeichnis in eine eigene virtuelle Umgebung installiert (Windows, PowerShell):
|
|
72
|
+
|
|
73
|
+
```powershell
|
|
74
|
+
py -3.12 -m venv .venv
|
|
75
|
+
.venv\Scripts\python.exe -m pip install .
|
|
76
|
+
.venv\Scripts\python.exe -c "import dynamic_icon_engine as e; print(e.__version__)"
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Ein bereits gebautes Wheel wird genauso installiert:
|
|
80
|
+
`.venv\Scripts\python.exe -m pip install dynamic_icon_engine-1.0.0-py3-none-any.whl`.
|
|
81
|
+
Erst nach einer Veröffentlichung wird `pip install dynamic-icon-engine` möglich sein.
|
|
82
|
+
Details, Linux/macOS-Befehle und Prüfung der Installation:
|
|
83
|
+
[docs/user-guide/installation.md](docs/user-guide/installation.md).
|
|
84
|
+
|
|
85
|
+
Paketname `dynamic-icon-engine`, Importname `dynamic_icon_engine`.
|
|
86
|
+
|
|
87
|
+
## Schnellstart
|
|
88
|
+
|
|
89
|
+
```python
|
|
90
|
+
import sys
|
|
91
|
+
|
|
92
|
+
from PySide6.QtWidgets import QApplication, QLabel, QSystemTrayIcon
|
|
93
|
+
|
|
94
|
+
from dynamic_icon_engine import IconAppearance, IconController
|
|
95
|
+
|
|
96
|
+
app = QApplication(sys.argv) # gehört der Anwendung
|
|
97
|
+
window = QLabel("Hallo Icon")
|
|
98
|
+
controller = IconController(parent=window) # im GUI-Thread, nach QApplication
|
|
99
|
+
controller.iconChanged.connect(window.setWindowIcon)
|
|
100
|
+
|
|
101
|
+
tray = QSystemTrayIcon(window) # gehört der Anwendung
|
|
102
|
+
controller.iconChanged.connect(tray.setIcon)
|
|
103
|
+
|
|
104
|
+
controller.set_appearance(IconAppearance("#103C85", "#FFFFFF", animation="pulse_slow"))
|
|
105
|
+
if QSystemTrayIcon.isSystemTrayAvailable():
|
|
106
|
+
tray.show()
|
|
107
|
+
|
|
108
|
+
app.aboutToQuit.connect(controller.dispose) # danach kein Timer und kein Signal mehr
|
|
109
|
+
window.show()
|
|
110
|
+
sys.exit(app.exec())
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Ein neuer Aufruf von `set_appearance(...)` wechselt das Aussehen sofort, z. B. statisch:
|
|
114
|
+
`controller.set_appearance(IconAppearance("#087A38", "#FFFFFF"))`. Die Engine erzeugt oder
|
|
115
|
+
beendet weder Anwendung noch Fenster oder Tray-Icon; sie liefert nur Icons.
|
|
116
|
+
Ausführliche Erklärung: [docs/user-guide/erste-schritte.md](docs/user-guide/erste-schritte.md).
|
|
117
|
+
|
|
118
|
+
## Beispiele
|
|
119
|
+
|
|
120
|
+
Alle Beispiele liegen in [examples/](examples/) und werden aus dem Projektverzeichnis mit
|
|
121
|
+
`python examples/<name>.py` gestartet (mit `--quit-after-ms N` beenden sie sich selbst).
|
|
122
|
+
|
|
123
|
+
| Beispiel | Zeigt |
|
|
124
|
+
|---|---|
|
|
125
|
+
| [quickstart.py](examples/quickstart.py) | Schnellstart: Fenster- und Tray-Icon mit Puls |
|
|
126
|
+
| [static_icon.py](examples/static_icon.py) | statisches Icon ohne Controller (`IconRenderer.render_icon`) |
|
|
127
|
+
| [pulse_animation.py](examples/pulse_animation.py) | endloser Puls, eigene Animation, `stop_animation()` |
|
|
128
|
+
| [finite_animation.py](examples/finite_animation.py) | endliche Animation, `animationFinished`, `replay()` |
|
|
129
|
+
| [circle_profile.py](examples/circle_profile.py) | `CircleProfile` im Vergleich zum klassischen Quadrat |
|
|
130
|
+
| [custom_graphic_set.py](examples/custom_graphic_set.py) | eigenes Grafikset aus `QImage`s und aus `manifest.json` |
|
|
131
|
+
| [tray_example.py](examples/tray_example.py) | Tray + Fenstericon, Wechsel und sauberes Beenden |
|
|
132
|
+
| [headless_render.py](examples/headless_render.py) | PNG-Ausgabe ohne Qt-Anwendung (`render_image`) |
|
|
133
|
+
|
|
134
|
+

|
|
135
|
+
|
|
136
|
+
## Testlabor
|
|
137
|
+
|
|
138
|
+
```powershell
|
|
139
|
+
.venv\Scripts\dynamic-icon-testlab.exe # oder: python -m dynamic_icon_engine.testlab
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
Das Testlabor ist ein Demo- und Prüfwerkzeug, kein Teil des Engine-Kerns. Siehe
|
|
143
|
+
[docs/user-guide/testlabor.md](docs/user-guide/testlabor.md).
|
|
144
|
+
|
|
145
|
+
## Grenzen
|
|
146
|
+
|
|
147
|
+
- Die Engine kennt keine fachlichen Zustände. Welche Farbe oder Animation zu welchem Zustand
|
|
148
|
+
gehört, entscheidet die Anwendung.
|
|
149
|
+
- Formen: vollflächiges Quadrat mit Grafikset oder Kreis (`CircleProfile`); kein Formeditor,
|
|
150
|
+
keine abgerundeten Ecken. Im Kreisprofil wird kein Symbol gezeichnet.
|
|
151
|
+
- Animiert wird ausschließlich die Hintergrunddeckkraft. Außer `period_ms > 0` erzwingt die
|
|
152
|
+
Engine keine Mindestperiode; schnelle Blinkfolgen (mehr als 3 Wechsel/s) sollten vermieden werden.
|
|
153
|
+
- Alle Qt-bezogenen Aufrufe nur im GUI-Thread.
|
|
154
|
+
- Wie Windows-Taskleiste und Alt-Tab Fenstericons darstellen und aktualisieren, bestimmt das
|
|
155
|
+
Betriebssystem; dafür gibt die Engine keine Zusage.
|
|
156
|
+
- Farbkontraste sind reine Luminanzkontraste; eine Eignung für Farbfehlsichtige wird nicht zugesagt.
|
|
157
|
+
|
|
158
|
+
Mehr dazu: [docs/user-guide/fehlersuche.md](docs/user-guide/fehlersuche.md#grenzen).
|
|
159
|
+
|
|
160
|
+
## Dokumentation
|
|
161
|
+
|
|
162
|
+
- [Benutzerhandbuch](docs/user-guide/index.md) – Installation, Nutzung, Integration,
|
|
163
|
+
typische Szenarien, Fehlersuche.
|
|
164
|
+
- [API-Referenz](docs/reference/index.md) – vollständige Beschreibung aller öffentlichen
|
|
165
|
+
Klassen, Funktionen, Parameter und Fehler.
|
|
166
|
+
- [Entwicklerhandbuch](docs/developer-guide/index.md) – für die Arbeit am Projekt selbst
|
|
167
|
+
(z. B. Tests und Build).
|
|
168
|
+
|
|
169
|
+
## Lizenz
|
|
170
|
+
|
|
171
|
+
MIT – siehe [LICENSE](LICENSE). Copyright (c) 2026 marcosudau-vps.
|
|
172
|
+
|
|
173
|
+
Die MIT-Freigabe umfasst den Code und die mitgelieferten, selbst gestalteten Grafikmasken.
|
|
174
|
+
Die Originalgrafiken bleiben privat und sind nicht Teil des Pakets; sie sind nicht als
|
|
175
|
+
gemeinfrei bezeichnet. Qt/PySide6 unterliegen weiterhin ihren eigenen Lizenzen. Details:
|
|
176
|
+
[docs/developer-guide/grafikset-provenienz.md](docs/developer-guide/grafikset-provenienz.md#herkunft-und-rechte).
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
dynamic_icon_engine/__init__.py,sha256=JyoSwBjGN8RaqBB-UDkkbuYF9zNuGvqU9bNXfTgLP0Q,1979
|
|
2
|
+
dynamic_icon_engine/_version.py,sha256=J-j-u0itpEFT6irdmWmixQqYMadNl1X91TxUmoiLHMI,22
|
|
3
|
+
dynamic_icon_engine/animation.py,sha256=kFto1_eSkwjsk2eEJ3f8wWs3Nt4WwrdMgsD6iI6L2NM,10143
|
|
4
|
+
dynamic_icon_engine/appearance.py,sha256=A1l-Qi0SjiEPMS9I5k7pAaUJYj-0tSESAmI47hLeF7c,3120
|
|
5
|
+
dynamic_icon_engine/controller.py,sha256=n2km8SNTIiKxGeqC36o4S97lHQl6uXfxmBG_r4Fv-b8,10610
|
|
6
|
+
dynamic_icon_engine/errors.py,sha256=Nnsg-vzYBLt_emjBTq4jECwK5uwy6M6bIZVfNxpwwLw,1370
|
|
7
|
+
dynamic_icon_engine/graphic_set.py,sha256=JuxfyA1dReDOKWFnQYb2lQvdNheusB-TT5ByqlNYLJA,19206
|
|
8
|
+
dynamic_icon_engine/renderer.py,sha256=fj9XMgdTSkX9C7q9WdAhU9ypOhaW0kHWimHkMOTtj9c,10513
|
|
9
|
+
dynamic_icon_engine/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
|
+
dynamic_icon_engine/resources/default/manifest.json,sha256=F1g7vzy4y68j69xzBivtZ8C5JXmEWSS3Y0ewPvCuNu4,2402
|
|
11
|
+
dynamic_icon_engine/resources/default/symbol.png,sha256=DuW-gvur2ymsJ7k8VMasjl1urfx-W1LTjAFEj7lWQ8A,13406
|
|
12
|
+
dynamic_icon_engine/resources/default/symbol_16.png,sha256=GWctZtamedtJtgVFor-YF5t-VhVa6rLLpdfQoEZ3j84,312
|
|
13
|
+
dynamic_icon_engine/resources/default/symbol_20.png,sha256=QcowwqhXWfUJsO8ZRZkSctmJzu7i-vyNJduzI8U6dIw,368
|
|
14
|
+
dynamic_icon_engine/resources/default/symbol_24.png,sha256=iwlcCj72edMaUjdPRGXAxetcf0oBFJ_yeV40qMiciA8,404
|
|
15
|
+
dynamic_icon_engine/resources/default/symbol_32.png,sha256=xmZ2jUky0mcVxvp8qkHsJoRpwdktsnxoK4wcXp3CZEM,550
|
|
16
|
+
dynamic_icon_engine/resources/default/symbol_ext.png,sha256=iQgxdRzhZ4XCR5Aw_OCJRFtsKKukYvy8JuOeBQuYApw,7406
|
|
17
|
+
dynamic_icon_engine/resources/default/symbol_ext_16.png,sha256=TRBsdBq1-eQDnmz0rR8k1dqPMbSxZ6-ZYnmV-8HqW9c,150
|
|
18
|
+
dynamic_icon_engine/resources/default/symbol_ext_20.png,sha256=vtaQ3vkkrqulUwhLT8vqsvcTbqwJe1hB_R1gShGcozc,148
|
|
19
|
+
dynamic_icon_engine/resources/default/symbol_ext_24.png,sha256=HZpUMLKufUDJcho_317FaWNY6HaloSv2LQ9NbAsunbE,166
|
|
20
|
+
dynamic_icon_engine/resources/default/symbol_ext_32.png,sha256=RrKjitaxywiYu_3TI5ZZ8_L2TTFn6w_ghw_2Qn1emuE,173
|
|
21
|
+
dynamic_icon_engine/resources/default/symbol_ext_clearance.png,sha256=50wiCMv7TZBF7qrRq6EEiz6JO-TOcW46ql7muOG4icg,7094
|
|
22
|
+
dynamic_icon_engine/resources/default/symbol_ext_clearance_16.png,sha256=znutDRntXmg_6p9ajhlu2qKYWIR3UJxIktM9dEp4Yaw,161
|
|
23
|
+
dynamic_icon_engine/resources/default/symbol_ext_clearance_20.png,sha256=Ey56VVPt7vzTyIUXsTfUiVgDEiDclqzpBNh9rDd8cEE,172
|
|
24
|
+
dynamic_icon_engine/resources/default/symbol_ext_clearance_24.png,sha256=ssY7DrF13QH2a5PNR_JVFTRvNInlRvpM0sG12wwn5uc,168
|
|
25
|
+
dynamic_icon_engine/resources/default/symbol_ext_clearance_32.png,sha256=OYeJzJi_-rJREB-hy8iVzIHRkjOgqJZWE5NwAYNBdto,201
|
|
26
|
+
dynamic_icon_engine/testlab/__init__.py,sha256=VqjM6QM4g50jQrXrIdEYBQTXSt_t7ko_dgM6Dqp6pQc,178
|
|
27
|
+
dynamic_icon_engine/testlab/__main__.py,sha256=kEskZ80heeD15fqDfdrB94EQ0FHbJeAf0GFVPwpcSr8,3380
|
|
28
|
+
dynamic_icon_engine/testlab/palette.py,sha256=-ZRzyC8r-r73dRSAQ3QV13B-T8tsQX6QxJbIxCttoUY,4264
|
|
29
|
+
dynamic_icon_engine/testlab/window.py,sha256=CC9xnJfG51fVCnIBgBhEGf0utBO0sBjE0ou2ldwoBTg,18919
|
|
30
|
+
dynamic_icon_engine-1.0.0.dist-info/licenses/LICENSE,sha256=UwlDjUxqC488qSPlL4iq-txCkfPnGFbF-z7CAj2OlWU,1071
|
|
31
|
+
dynamic_icon_engine-1.0.0.dist-info/METADATA,sha256=SDoIeNJNFO1yZ2U4Wof-_fpsckTz4prvkoIOB523ftU,8906
|
|
32
|
+
dynamic_icon_engine-1.0.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
33
|
+
dynamic_icon_engine-1.0.0.dist-info/entry_points.txt,sha256=K6I3VH0tU7CwsxgIq_2XvM9ERQyz7LkPolCzndcr8lk,83
|
|
34
|
+
dynamic_icon_engine-1.0.0.dist-info/top_level.txt,sha256=0EJ4erBDq9M64fmzQsMWtBDs1hBv_fJFb6RxSOxUx98,20
|
|
35
|
+
dynamic_icon_engine-1.0.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 marcosudau-vps
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
dynamic_icon_engine
|