lightfall 0.1.1__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.
Files changed (388) hide show
  1. lightfall/__init__.py +8 -0
  2. lightfall/__main__.py +10 -0
  3. lightfall/_version.py +24 -0
  4. lightfall/acquire/__init__.py +74 -0
  5. lightfall/acquire/buffer.py +363 -0
  6. lightfall/acquire/device_wrapper.py +416 -0
  7. lightfall/acquire/engine/__init__.py +155 -0
  8. lightfall/acquire/engine/base.py +587 -0
  9. lightfall/acquire/engine/bluesky.py +358 -0
  10. lightfall/acquire/engine/mock.py +165 -0
  11. lightfall/acquire/engine/plugins/__init__.py +9 -0
  12. lightfall/acquire/engine/plugins/bluesky_plugin.py +56 -0
  13. lightfall/acquire/engine/plugins/mock_plugin.py +55 -0
  14. lightfall/acquire/engine/protocol.py +145 -0
  15. lightfall/acquire/engine/registry.py +152 -0
  16. lightfall/acquire/engine/state.py +32 -0
  17. lightfall/acquire/engine/waiting_hook.py +225 -0
  18. lightfall/acquire/nats_bridge.py +62 -0
  19. lightfall/acquire/plan_ui.py +78 -0
  20. lightfall/acquire/plans/__init__.py +38 -0
  21. lightfall/acquire/plans/adaptive.py +288 -0
  22. lightfall/acquire/plans/example_plans.py +995 -0
  23. lightfall/acquire/plans/lightfall_plans.py +587 -0
  24. lightfall/acquire/plans/registry.py +543 -0
  25. lightfall/acquire/plans/standard_plans.py +186 -0
  26. lightfall/acquire/plans/user_plans.py +470 -0
  27. lightfall/acquire/runengine.py +36 -0
  28. lightfall/acquire/signals.py +452 -0
  29. lightfall/acquire/triggers/__init__.py +16 -0
  30. lightfall/acquire/triggers/base.py +25 -0
  31. lightfall/acquire/triggers/filter.py +37 -0
  32. lightfall/acquire/triggers/manager.py +73 -0
  33. lightfall/acquire/triggers/manual.py +36 -0
  34. lightfall/acquire/triggers/run_end.py +74 -0
  35. lightfall/acquire/triggers/run_start.py +52 -0
  36. lightfall/auth/__init__.py +38 -0
  37. lightfall/auth/policy.py +518 -0
  38. lightfall/auth/providers/__init__.py +30 -0
  39. lightfall/auth/providers/base.py +124 -0
  40. lightfall/auth/providers/keycloak.py +1017 -0
  41. lightfall/auth/providers/local.py +319 -0
  42. lightfall/auth/providers/pam.py +250 -0
  43. lightfall/auth/service_key.py +173 -0
  44. lightfall/auth/service_key_auth.py +79 -0
  45. lightfall/auth/session.py +656 -0
  46. lightfall/claude/__init__.py +52 -0
  47. lightfall/claude/_internal/__init__.py +1 -0
  48. lightfall/claude/_internal/serialization.py +195 -0
  49. lightfall/claude/_internal/threading.py +61 -0
  50. lightfall/claude/_internal/worker.py +757 -0
  51. lightfall/claude/_session_assembly.py +124 -0
  52. lightfall/claude/agent.py +596 -0
  53. lightfall/claude/lightfall_core_tools.py +410 -0
  54. lightfall/claude/markdown.py +103 -0
  55. lightfall/claude/permission_manager.py +588 -0
  56. lightfall/claude/tools/__init__.py +45 -0
  57. lightfall/claude/tools/controller.py +143 -0
  58. lightfall/claude/tools/interaction.py +177 -0
  59. lightfall/claude/tools/introspection.py +127 -0
  60. lightfall/claude/tools/logs.py +155 -0
  61. lightfall/claude/tools/screenshot.py +87 -0
  62. lightfall/claude/widget.py +851 -0
  63. lightfall/claude/widgets/__init__.py +5 -0
  64. lightfall/claude/widgets/permission_request.py +282 -0
  65. lightfall/claude/widgets/question_request.py +227 -0
  66. lightfall/claude/widgets/task_card.py +223 -0
  67. lightfall/config/__init__.py +23 -0
  68. lightfall/config/layers.py +317 -0
  69. lightfall/config/manager.py +244 -0
  70. lightfall/config/schema.py +154 -0
  71. lightfall/core/__init__.py +23 -0
  72. lightfall/core/application.py +727 -0
  73. lightfall/core/services.py +235 -0
  74. lightfall/devices/__init__.py +53 -0
  75. lightfall/devices/backends/__init__.py +17 -0
  76. lightfall/devices/backends/bcs.py +448 -0
  77. lightfall/devices/backends/happi.py +986 -0
  78. lightfall/devices/backends/mock.py +646 -0
  79. lightfall/devices/base.py +338 -0
  80. lightfall/devices/catalog.py +1039 -0
  81. lightfall/devices/connection_manager.py +676 -0
  82. lightfall/devices/model.py +290 -0
  83. lightfall/devices/monitoring.py +442 -0
  84. lightfall/devices/sim/__init__.py +26 -0
  85. lightfall/devices/sim/areadetector.py +436 -0
  86. lightfall/devices/sim/generators.py +223 -0
  87. lightfall/devices/sim/plugins.py +116 -0
  88. lightfall/epics/__init__.py +28 -0
  89. lightfall/epics/ca/__init__.py +10 -0
  90. lightfall/epics/ca/context.py +100 -0
  91. lightfall/epics/ca/pv.py +303 -0
  92. lightfall/epics/widgets/__init__.py +49 -0
  93. lightfall/epics/widgets/areadetector/__init__.py +16 -0
  94. lightfall/epics/widgets/areadetector/areadetector.py +281 -0
  95. lightfall/epics/widgets/areadetector/controls.py +478 -0
  96. lightfall/epics/widgets/areadetector/image_view.py +447 -0
  97. lightfall/epics/widgets/auto.py +319 -0
  98. lightfall/epics/widgets/base.py +404 -0
  99. lightfall/epics/widgets/checkbox.py +239 -0
  100. lightfall/epics/widgets/combobox.py +202 -0
  101. lightfall/epics/widgets/label.py +176 -0
  102. lightfall/epics/widgets/lineedit.py +253 -0
  103. lightfall/epics/widgets/motor.py +694 -0
  104. lightfall/epics/widgets/ophyd_base.py +469 -0
  105. lightfall/epics/widgets/ophyd_combobox.py +86 -0
  106. lightfall/epics/widgets/ophyd_label.py +54 -0
  107. lightfall/epics/widgets/ophyd_lineedit.py +170 -0
  108. lightfall/epics/widgets/ophyd_spinbox.py +79 -0
  109. lightfall/epics/widgets/slider.py +272 -0
  110. lightfall/epics/widgets/status_indicator.py +98 -0
  111. lightfall/epics/widgets/style.py +188 -0
  112. lightfall/exporter/__init__.py +1 -0
  113. lightfall/exporter/cli.py +67 -0
  114. lightfall/exporter/converters/__init__.py +26 -0
  115. lightfall/exporter/converters/base.py +39 -0
  116. lightfall/exporter/converters/noop.py +39 -0
  117. lightfall/exporter/converters/nxsas.py +73 -0
  118. lightfall/exporter/service.py +200 -0
  119. lightfall/exporter/tiled_utils.py +92 -0
  120. lightfall/ipc/__init__.py +6 -0
  121. lightfall/ipc/service.py +701 -0
  122. lightfall/ipc/trust.py +144 -0
  123. lightfall/logbook/__init__.py +46 -0
  124. lightfall/logbook/action_dialog.py +207 -0
  125. lightfall/logbook/action_logger.py +432 -0
  126. lightfall/logbook/block_mapper.py +562 -0
  127. lightfall/logbook/client.py +799 -0
  128. lightfall/logbook/converter.py +273 -0
  129. lightfall/logbook/editors/__init__.py +19 -0
  130. lightfall/logbook/editors/highlighter.py +305 -0
  131. lightfall/logbook/editors/markdown_editor.py +319 -0
  132. lightfall/logbook/editors/richtext_editor.py +1397 -0
  133. lightfall/logbook/entry_widget.py +1065 -0
  134. lightfall/logbook/event_listener.py +221 -0
  135. lightfall/logbook/fragment_widgets.py +925 -0
  136. lightfall/logbook/position_mapper.py +320 -0
  137. lightfall/logbook/protection.py +402 -0
  138. lightfall/logbook/style.py +394 -0
  139. lightfall/logbook/url.py +29 -0
  140. lightfall/logbook/visual_protection.py +330 -0
  141. lightfall/logbook/widget.py +680 -0
  142. lightfall/main.py +1091 -0
  143. lightfall/pipelines/__init__.py +4 -0
  144. lightfall/pipelines/client.py +148 -0
  145. lightfall/plugins/__init__.py +119 -0
  146. lightfall/plugins/agent_plugin.py +106 -0
  147. lightfall/plugins/agents/__init__.py +10 -0
  148. lightfall/plugins/agents/_mcp_helpers.py +52 -0
  149. lightfall/plugins/agents/alignment.py +94 -0
  150. lightfall/plugins/agents/autonomous_experiment/__init__.py +12 -0
  151. lightfall/plugins/agents/autonomous_experiment/nats_tools.py +210 -0
  152. lightfall/plugins/agents/autonomous_experiment/plugin.py +60 -0
  153. lightfall/plugins/agents/autonomous_experiment/prompts.py +164 -0
  154. lightfall/plugins/agents/current_esaf.py +435 -0
  155. lightfall/plugins/agents/device_tools.py +1043 -0
  156. lightfall/plugins/agents/engine_tools.py +720 -0
  157. lightfall/plugins/agents/ipython_tools.py +444 -0
  158. lightfall/plugins/agents/panel_builder.py +637 -0
  159. lightfall/plugins/agents/panel_design/references/cross_panel_patterns.md +95 -0
  160. lightfall/plugins/agents/panel_design/references/panel_design.md +680 -0
  161. lightfall/plugins/agents/panel_design.py +94 -0
  162. lightfall/plugins/agents/plan_design/references/plan_design.md +398 -0
  163. lightfall/plugins/agents/plan_design.py +90 -0
  164. lightfall/plugins/agents/plan_tools.py +878 -0
  165. lightfall/plugins/agents/scan_planning.py +101 -0
  166. lightfall/plugins/builtin_manifest.py +348 -0
  167. lightfall/plugins/controller_plugin.py +162 -0
  168. lightfall/plugins/engine_plugin.py +124 -0
  169. lightfall/plugins/errors.py +104 -0
  170. lightfall/plugins/info.py +112 -0
  171. lightfall/plugins/loader.py +878 -0
  172. lightfall/plugins/manifest.py +150 -0
  173. lightfall/plugins/panel_plugin.py +119 -0
  174. lightfall/plugins/plan_plugin.py +163 -0
  175. lightfall/plugins/registry.py +309 -0
  176. lightfall/plugins/settings_plugin.py +226 -0
  177. lightfall/plugins/statusbar_plugin.py +289 -0
  178. lightfall/plugins/theme_plugin.py +165 -0
  179. lightfall/plugins/types.py +136 -0
  180. lightfall/plugins/user_plugins.py +764 -0
  181. lightfall/project/__init__.py +37 -0
  182. lightfall/project/model.py +375 -0
  183. lightfall/project/service.py +427 -0
  184. lightfall/project/welcome.py +106 -0
  185. lightfall/resources/__init__.py +126 -0
  186. lightfall/resources/images/__init__.py +1 -0
  187. lightfall/resources/images/icon.ico +0 -0
  188. lightfall/resources/images/icon.png +0 -0
  189. lightfall/resources/images/logo.png +0 -0
  190. lightfall/services/__init__.py +33 -0
  191. lightfall/services/_alshub_client.py +73 -0
  192. lightfall/services/access_stamper.py +240 -0
  193. lightfall/services/als_beam_status.py +347 -0
  194. lightfall/services/ca_tunnel.py +325 -0
  195. lightfall/services/threaded_tiled_writer.py +174 -0
  196. lightfall/services/tiled_auth.py +21 -0
  197. lightfall/services/tiled_service.py +971 -0
  198. lightfall/services/tiled_writer_patch.py +301 -0
  199. lightfall/settings/__init__.py +1 -0
  200. lightfall/settings/image_helpers.py +30 -0
  201. lightfall/settings/user_settings_client.py +232 -0
  202. lightfall/ui/__init__.py +28 -0
  203. lightfall/ui/annotations.py +208 -0
  204. lightfall/ui/common/__init__.py +7 -0
  205. lightfall/ui/dialogs/__init__.py +26 -0
  206. lightfall/ui/dialogs/about_dialog.py +131 -0
  207. lightfall/ui/dialogs/add_trigger_dialog.py +152 -0
  208. lightfall/ui/dialogs/base.py +44 -0
  209. lightfall/ui/dialogs/bug_report_dialog.py +353 -0
  210. lightfall/ui/dialogs/create_plan_dialog.py +189 -0
  211. lightfall/ui/dialogs/device_edit_dialog.py +183 -0
  212. lightfall/ui/dialogs/export_dialog.py +565 -0
  213. lightfall/ui/dialogs/go_to_position_dialog.py +192 -0
  214. lightfall/ui/dialogs/login_dialog.py +756 -0
  215. lightfall/ui/dialogs/oauth_browser_dialog.py +305 -0
  216. lightfall/ui/dialogs/run_pipeline_dialog.py +131 -0
  217. lightfall/ui/dialogs/sample_metadata_dialog.py +316 -0
  218. lightfall/ui/docking/__init__.py +22 -0
  219. lightfall/ui/docking/icon_sidebar.py +806 -0
  220. lightfall/ui/docking/manager.py +682 -0
  221. lightfall/ui/docking/state.py +113 -0
  222. lightfall/ui/docking/theme.py +399 -0
  223. lightfall/ui/docking/widget.py +214 -0
  224. lightfall/ui/events.py +75 -0
  225. lightfall/ui/mainwindow.py +1006 -0
  226. lightfall/ui/models/__init__.py +49 -0
  227. lightfall/ui/models/device_selection.py +389 -0
  228. lightfall/ui/models/device_tree.py +1095 -0
  229. lightfall/ui/models/thread_model.py +667 -0
  230. lightfall/ui/models/tiled_model.py +384 -0
  231. lightfall/ui/panels/__init__.py +28 -0
  232. lightfall/ui/panels/base.py +525 -0
  233. lightfall/ui/panels/bluesky_panel.py +619 -0
  234. lightfall/ui/panels/claude/__init__.py +9 -0
  235. lightfall/ui/panels/claude/agent_registry.py +168 -0
  236. lightfall/ui/panels/claude_panel.py +887 -0
  237. lightfall/ui/panels/device_panel.py +370 -0
  238. lightfall/ui/panels/documents_panel.py +166 -0
  239. lightfall/ui/panels/ipython_panel.py +580 -0
  240. lightfall/ui/panels/logbook_entries_panel.py +84 -0
  241. lightfall/ui/panels/logbook_panel.py +627 -0
  242. lightfall/ui/panels/logging_panel.py +587 -0
  243. lightfall/ui/panels/pipeline_jobs_panel.py +160 -0
  244. lightfall/ui/panels/pipeline_triggers_panel.py +170 -0
  245. lightfall/ui/panels/plugins/__init__.py +34 -0
  246. lightfall/ui/panels/plugins/bluesky_plugin.py +27 -0
  247. lightfall/ui/panels/plugins/claude_plugin.py +29 -0
  248. lightfall/ui/panels/plugins/device_plugin.py +27 -0
  249. lightfall/ui/panels/plugins/documents_plugin.py +26 -0
  250. lightfall/ui/panels/plugins/ipython_plugin.py +27 -0
  251. lightfall/ui/panels/plugins/logbook_entries_plugin.py +23 -0
  252. lightfall/ui/panels/plugins/logbook_plugin.py +27 -0
  253. lightfall/ui/panels/plugins/logging_plugin.py +27 -0
  254. lightfall/ui/panels/plugins/pipeline_jobs_plugin.py +23 -0
  255. lightfall/ui/panels/plugins/pipeline_triggers_plugin.py +25 -0
  256. lightfall/ui/panels/plugins/queue_plugin.py +29 -0
  257. lightfall/ui/panels/plugins/synoptic_plugin.py +38 -0
  258. lightfall/ui/panels/plugins/threads_plugin.py +27 -0
  259. lightfall/ui/panels/plugins/tiled_browser_plugin.py +27 -0
  260. lightfall/ui/panels/plugins/visualization_plugin.py +27 -0
  261. lightfall/ui/panels/queue.py +754 -0
  262. lightfall/ui/panels/registry.py +483 -0
  263. lightfall/ui/panels/synoptic/__init__.py +27 -0
  264. lightfall/ui/panels/synoptic/editors.py +481 -0
  265. lightfall/ui/panels/synoptic/items.py +556 -0
  266. lightfall/ui/panels/synoptic/models.py +336 -0
  267. lightfall/ui/panels/synoptic/panel.py +889 -0
  268. lightfall/ui/panels/synoptic/serialization.py +300 -0
  269. lightfall/ui/panels/synoptic/view.py +504 -0
  270. lightfall/ui/panels/threads_panel.py +621 -0
  271. lightfall/ui/panels/tiled_browser_panel.py +854 -0
  272. lightfall/ui/panels/visualization_panel.py +508 -0
  273. lightfall/ui/preferences/__init__.py +24 -0
  274. lightfall/ui/preferences/backend.py +148 -0
  275. lightfall/ui/preferences/builtin.py +220 -0
  276. lightfall/ui/preferences/claude_settings.py +762 -0
  277. lightfall/ui/preferences/device_settings.py +461 -0
  278. lightfall/ui/preferences/dialog.py +234 -0
  279. lightfall/ui/preferences/editor_settings.py +227 -0
  280. lightfall/ui/preferences/ipc_settings.py +226 -0
  281. lightfall/ui/preferences/logbook_settings.py +232 -0
  282. lightfall/ui/preferences/login_settings.py +183 -0
  283. lightfall/ui/preferences/manager.py +562 -0
  284. lightfall/ui/preferences/plugin_settings.py +392 -0
  285. lightfall/ui/preferences/proxy_settings.py +561 -0
  286. lightfall/ui/preferences/skill_settings.py +28 -0
  287. lightfall/ui/preferences/tiled_settings.py +469 -0
  288. lightfall/ui/preferences/tool_settings.py +393 -0
  289. lightfall/ui/preferences/user_portable_backend.py +131 -0
  290. lightfall/ui/preferences/user_profile_settings.py +316 -0
  291. lightfall/ui/preferences/visualization_settings.py +159 -0
  292. lightfall/ui/resources/__init__.py +1 -0
  293. lightfall/ui/resources/logo.png +0 -0
  294. lightfall/ui/statusbar/__init__.py +11 -0
  295. lightfall/ui/statusbar/manager.py +379 -0
  296. lightfall/ui/statusbar/plugins/__init__.py +28 -0
  297. lightfall/ui/statusbar/plugins/als_beam_status.py +218 -0
  298. lightfall/ui/statusbar/plugins/auth_status.py +116 -0
  299. lightfall/ui/statusbar/plugins/connection_status.py +100 -0
  300. lightfall/ui/statusbar/plugins/thread_status.py +556 -0
  301. lightfall/ui/statusbar/plugins/tiled_status.py +179 -0
  302. lightfall/ui/statusbar/plugins/user_status.py +84 -0
  303. lightfall/ui/theater/__init__.py +28 -0
  304. lightfall/ui/theater/manager.py +124 -0
  305. lightfall/ui/theater/overlay.py +279 -0
  306. lightfall/ui/theater/proxy.py +111 -0
  307. lightfall/ui/theme/__init__.py +18 -0
  308. lightfall/ui/theme/builtin.py +1015 -0
  309. lightfall/ui/theme/manager.py +875 -0
  310. lightfall/ui/theme/registry.py +195 -0
  311. lightfall/ui/toast.py +221 -0
  312. lightfall/ui/tutorial.py +1100 -0
  313. lightfall/ui/widgets/__init__.py +110 -0
  314. lightfall/ui/widgets/base_control.py +259 -0
  315. lightfall/ui/widgets/camera/__init__.py +36 -0
  316. lightfall/ui/widgets/camera/base.py +815 -0
  317. lightfall/ui/widgets/camera/dark_frames.py +213 -0
  318. lightfall/ui/widgets/camera/image_view.py +649 -0
  319. lightfall/ui/widgets/camera/panels/__init__.py +14 -0
  320. lightfall/ui/widgets/camera/panels/cooler.py +320 -0
  321. lightfall/ui/widgets/camera/panels/temperature.py +192 -0
  322. lightfall/ui/widgets/camera/plan_based.py +202 -0
  323. lightfall/ui/widgets/compact_motor.py +522 -0
  324. lightfall/ui/widgets/controller_matcher.py +278 -0
  325. lightfall/ui/widgets/controller_registry.py +144 -0
  326. lightfall/ui/widgets/device_control.py +411 -0
  327. lightfall/ui/widgets/device_selector.py +438 -0
  328. lightfall/ui/widgets/device_tree_tab.py +461 -0
  329. lightfall/ui/widgets/document_stream.py +1028 -0
  330. lightfall/ui/widgets/favorites_tab.py +191 -0
  331. lightfall/ui/widgets/motor_control.py +1120 -0
  332. lightfall/ui/widgets/observers/__init__.py +8 -0
  333. lightfall/ui/widgets/observers/camera.py +48 -0
  334. lightfall/ui/widgets/observers/image_view.py +130 -0
  335. lightfall/ui/widgets/plan_config.py +954 -0
  336. lightfall/ui/widgets/plan_edit_dialog.py +294 -0
  337. lightfall/ui/widgets/plan_selector.py +452 -0
  338. lightfall/ui/widgets/profile_avatar.py +128 -0
  339. lightfall/ui/widgets/queue_view.py +647 -0
  340. lightfall/ui/widgets/runengine_control.py +549 -0
  341. lightfall/ui/widgets/signal_control.py +793 -0
  342. lightfall/ui/widgets/skill_trigger_button.py +183 -0
  343. lightfall/ui/widgets/tiled_filter_widget.py +314 -0
  344. lightfall/ui/widgets/tiled_status.py +149 -0
  345. lightfall/ui/widgets/warning_banner.py +185 -0
  346. lightfall/utils/__init__.py +53 -0
  347. lightfall/utils/crash_diagnostics.py +454 -0
  348. lightfall/utils/data_migration.py +22 -0
  349. lightfall/utils/editor_launcher.py +594 -0
  350. lightfall/utils/error_collector.py +245 -0
  351. lightfall/utils/git_tracker.py +197 -0
  352. lightfall/utils/log_buffer.py +233 -0
  353. lightfall/utils/logging.py +229 -0
  354. lightfall/utils/module_resolver.py +70 -0
  355. lightfall/utils/sentry.py +722 -0
  356. lightfall/utils/threads.py +991 -0
  357. lightfall/utils/tiled_helpers.py +96 -0
  358. lightfall/visualization/__init__.py +50 -0
  359. lightfall/visualization/base.py +5 -0
  360. lightfall/visualization/base_visualization.py +74 -0
  361. lightfall/visualization/fitting/__init__.py +24 -0
  362. lightfall/visualization/fitting/base.py +267 -0
  363. lightfall/visualization/fitting/fitters.py +325 -0
  364. lightfall/visualization/fitting/panel.py +265 -0
  365. lightfall/visualization/memory.py +392 -0
  366. lightfall/visualization/motor_mixin.py +524 -0
  367. lightfall/visualization/pg.py +156 -0
  368. lightfall/visualization/registry.py +144 -0
  369. lightfall/visualization/spec.py +79 -0
  370. lightfall/visualization/theme.py +266 -0
  371. lightfall/visualization/widgets/__init__.py +28 -0
  372. lightfall/visualization/widgets/adaptive/__init__.py +1 -0
  373. lightfall/visualization/widgets/adaptive/heatmap.py +655 -0
  374. lightfall/visualization/widgets/adaptive/plot.py +233 -0
  375. lightfall/visualization/widgets/heatmap.py +264 -0
  376. lightfall/visualization/widgets/image_stack.py +316 -0
  377. lightfall/visualization/widgets/image_view_toolbar.py +227 -0
  378. lightfall/visualization/widgets/lazy_image_view.py +590 -0
  379. lightfall/visualization/widgets/plot_1d.py +262 -0
  380. lightfall/visualization/widgets/scatter.py +247 -0
  381. lightfall/visualization/widgets/table.py +221 -0
  382. lightfall/visualization/widgets/time_axis.py +93 -0
  383. lightfall-0.1.1.dist-info/METADATA +223 -0
  384. lightfall-0.1.1.dist-info/RECORD +388 -0
  385. lightfall-0.1.1.dist-info/WHEEL +4 -0
  386. lightfall-0.1.1.dist-info/entry_points.txt +6 -0
  387. lightfall-0.1.1.dist-info/licenses/LEGAL.md +13 -0
  388. lightfall-0.1.1.dist-info/licenses/LICENSE.md +33 -0
@@ -0,0 +1,1015 @@
1
+ """Built-in theme plugins for NCS.
2
+
3
+ This module contains the default themes that ship with NCS:
4
+ - LightThemePlugin: Light/bright theme
5
+ - SlateThemePlugin: Neutral gray dark theme
6
+ - DarkBlueThemePlugin: Blue-gray dark theme
7
+ - IslandsThemePlugin: Modern theme with visually separated components
8
+ - CatppuccinMochaThemePlugin: Catppuccin Mocha palette (warm dark)
9
+ - EldritchThemePlugin: Eldritch palette (deep blue/magenta dark)
10
+ - EvangelionThemePlugin: NGE Unit-01 palette (purple/green dark)
11
+ - AyakaThemePlugin: Twilight sakura palette (warm indigo/pink dark)
12
+ """
13
+
14
+ from __future__ import annotations
15
+
16
+ from lightfall.plugins.theme_plugin import ThemeDefinition, ThemePlugin
17
+
18
+
19
+ class LightThemePlugin(ThemePlugin):
20
+ """Light theme plugin.
21
+
22
+ A bright theme with white backgrounds and dark text,
23
+ suitable for well-lit environments.
24
+ """
25
+
26
+ @property
27
+ def name(self) -> str:
28
+ return "light"
29
+
30
+ @property
31
+ def display_name(self) -> str:
32
+ return "Light"
33
+
34
+ @property
35
+ def is_dark(self) -> bool:
36
+ return False
37
+
38
+ def get_theme_definition(self) -> ThemeDefinition:
39
+ return ThemeDefinition(
40
+ primary="#2563eb",
41
+ secondary="#7c3aed",
42
+ success="#16a34a",
43
+ warning="#d97706",
44
+ error="#dc2626",
45
+ info="#0891b2",
46
+ background="#ffffff",
47
+ surface="#f3f4f6",
48
+ text="#1f2937",
49
+ text_secondary="#6b7280",
50
+ border="#e5e7eb",
51
+ disconnected="#ffcccc",
52
+ )
53
+
54
+
55
+ class SlateThemePlugin(ThemePlugin):
56
+ """Slate (dark) theme plugin.
57
+
58
+ A neutral gray dark theme that reduces eye strain in low-light
59
+ environments. This is the default dark theme.
60
+ """
61
+
62
+ @property
63
+ def name(self) -> str:
64
+ return "slate"
65
+
66
+ @property
67
+ def display_name(self) -> str:
68
+ return "Slate (Dark)"
69
+
70
+ @property
71
+ def is_dark(self) -> bool:
72
+ return True
73
+
74
+ def get_theme_definition(self) -> ThemeDefinition:
75
+ return ThemeDefinition(
76
+ primary="#3b82f6",
77
+ secondary="#8b5cf6",
78
+ success="#22c55e",
79
+ warning="#f59e0b",
80
+ error="#ef4444",
81
+ info="#06b6d4",
82
+ background="#1e1e1e",
83
+ surface="#2d2d2d",
84
+ text="#d4d4d4",
85
+ text_secondary="#808080",
86
+ border="#3e3e3e",
87
+ disconnected="#5c2020",
88
+ )
89
+
90
+
91
+ class DarkBlueThemePlugin(ThemePlugin):
92
+ """Dark Blue theme plugin.
93
+
94
+ A blue-gray dark theme with slightly warmer tones than Slate.
95
+ """
96
+
97
+ @property
98
+ def name(self) -> str:
99
+ return "darkblue"
100
+
101
+ @property
102
+ def display_name(self) -> str:
103
+ return "Dark Blue"
104
+
105
+ @property
106
+ def is_dark(self) -> bool:
107
+ return True
108
+
109
+ def get_theme_definition(self) -> ThemeDefinition:
110
+ return ThemeDefinition(
111
+ primary="#3b82f6",
112
+ secondary="#8b5cf6",
113
+ success="#22c55e",
114
+ warning="#f59e0b",
115
+ error="#ef4444",
116
+ info="#06b6d4",
117
+ background="#1f2937",
118
+ surface="#374151",
119
+ text="#f3f4f6",
120
+ text_secondary="#9ca3af",
121
+ border="#4b5563",
122
+ disconnected="#5c2020",
123
+ )
124
+
125
+
126
+ class IslandsThemePlugin(ThemePlugin):
127
+ """Islands theme plugin.
128
+
129
+ A modern dark theme inspired by JetBrains' Islands design language.
130
+ UI components appear as distinct "islands" floating on a darker canvas,
131
+ with rounded corners, subtle elevation, and a purple accent color.
132
+
133
+ Key design principles:
134
+ - Visual separation: panels float on a darker background
135
+ - Rounded corners on major UI elements
136
+ - Purple accent color for focus and highlights
137
+ - Soft, balanced appearance for reduced eye strain
138
+ """
139
+
140
+ @property
141
+ def name(self) -> str:
142
+ return "islands"
143
+
144
+ @property
145
+ def display_name(self) -> str:
146
+ return "Islands"
147
+
148
+ @property
149
+ def is_dark(self) -> bool:
150
+ return True
151
+
152
+ # --- Islands color constants (used in both definition and CSS) ---
153
+ _BG = "#18181B" # background (deepest)
154
+ _ISLAND = "#1E1E22" # surface / island panels
155
+ _SEA = "#27272A" # sea (gaps, title bars, menubar)
156
+ _INPUT = "#1F1F23" # input fields
157
+ _BORDER = "#3F3F46"
158
+ _BORDER_HI = "#52525B"
159
+ _ACCENT = "#6B57FF"
160
+ _ACCENT_HOVER = "#5B47EF"
161
+ _ACCENT_PRESS = "#4B37DF"
162
+ _TEXT = "#FAFAFA"
163
+ _TEXT2 = "#A1A1AA"
164
+
165
+ def get_theme_definition(self) -> ThemeDefinition:
166
+ # Color palette inspired by JetBrains Islands theme
167
+ # Islands (surface) are darker, the sea (gaps between panels) is lighter
168
+ c = self # shortcut to class attrs
169
+ return ThemeDefinition(
170
+ primary=c._ACCENT,
171
+ secondary="#8B7FFF",
172
+ success="#3FB950",
173
+ warning="#D29922",
174
+ error="#F85149",
175
+ info="#58A6FF",
176
+ background=c._BG,
177
+ surface=c._ISLAND,
178
+ sea=c._SEA,
179
+ text=c._TEXT,
180
+ text_secondary=c._TEXT2,
181
+ border=c._BORDER,
182
+ connected="#3FB950",
183
+ disconnected="#5C2323",
184
+ css_overrides=_build_islands_css(c),
185
+ )
186
+
187
+
188
+ def _build_islands_css(c) -> str:
189
+ """Build Islands CSS overrides from the class color constants."""
190
+ return f"""
191
+ /* Islands Theme - Visual separation and rounded corners */
192
+
193
+ /* --------------------------------------------------------------------------
194
+ Menu bar — sea color, sits above the islands
195
+ -------------------------------------------------------------------------- */
196
+ QMenuBar {{
197
+ background: {c._SEA};
198
+ color: {c._TEXT};
199
+ border: none;
200
+ padding: 2px 4px;
201
+ spacing: 2px;
202
+ }}
203
+
204
+ QMenuBar::item {{
205
+ background: transparent;
206
+ padding: 4px 8px;
207
+ border-radius: 6px;
208
+ }}
209
+
210
+ QMenuBar::item:selected {{
211
+ background: {c._BORDER};
212
+ }}
213
+
214
+ /* --------------------------------------------------------------------------
215
+ Menus — island-styled popups
216
+ -------------------------------------------------------------------------- */
217
+ QMenu {{
218
+ background-color: {c._SEA};
219
+ border: 1px solid {c._BORDER};
220
+ border-radius: 8px;
221
+ padding: 4px;
222
+ }}
223
+
224
+ QMenu::item {{
225
+ padding: 8px 24px;
226
+ border-radius: 4px;
227
+ margin: 2px 4px;
228
+ }}
229
+
230
+ QMenu::item:selected {{
231
+ background-color: {c._ACCENT};
232
+ color: white;
233
+ }}
234
+
235
+ QMenu::separator {{
236
+ height: 1px;
237
+ background: {c._BORDER};
238
+ margin: 6px 12px;
239
+ }}
240
+
241
+ /* Fix: Qt renders a white corner artifact on rounded menus.
242
+ Force the menu viewport (scroll area) to be transparent. */
243
+ QMenu QWidget {{
244
+ background: transparent;
245
+ }}
246
+
247
+ /* --------------------------------------------------------------------------
248
+ Group boxes — island containers
249
+ -------------------------------------------------------------------------- */
250
+ QGroupBox {{
251
+ border-radius: 8px;
252
+ margin-top: 12px;
253
+ padding: 12px 8px 8px 8px;
254
+ background-color: {c._SEA};
255
+ }}
256
+
257
+ QGroupBox::title {{
258
+ subcontrol-origin: margin;
259
+ left: 12px;
260
+ padding: 0 6px;
261
+ background-color: {c._SEA};
262
+ border-radius: 4px;
263
+ }}
264
+
265
+ /* --------------------------------------------------------------------------
266
+ Tabs
267
+ -------------------------------------------------------------------------- */
268
+ QTabWidget::pane {{
269
+ border: 1px solid {c._BORDER};
270
+ border-radius: 8px;
271
+ background: {c._SEA};
272
+ margin-top: -1px;
273
+ }}
274
+
275
+ QTabBar::tab {{
276
+ background: {c._BG};
277
+ border: 1px solid {c._BORDER};
278
+ border-bottom: none;
279
+ border-top-left-radius: 6px;
280
+ border-top-right-radius: 6px;
281
+ padding: 8px 16px;
282
+ margin-right: 2px;
283
+ }}
284
+
285
+ QTabBar::tab:selected {{
286
+ background: {c._SEA};
287
+ border-bottom-color: {c._SEA};
288
+ }}
289
+
290
+ QTabBar::tab:hover:!selected {{
291
+ background: {c._INPUT};
292
+ }}
293
+
294
+ /* --------------------------------------------------------------------------
295
+ Inputs
296
+ -------------------------------------------------------------------------- */
297
+ QLineEdit {{
298
+ border-radius: 6px;
299
+ padding: 4px 8px;
300
+ background: {c._INPUT};
301
+ border: 1px solid {c._BORDER};
302
+ }}
303
+
304
+ QLineEdit:focus {{
305
+ border-color: {c._ACCENT};
306
+ background: {c._SEA};
307
+ }}
308
+
309
+ QComboBox {{
310
+ border-radius: 6px;
311
+ padding: 4px 8px;
312
+ background: {c._INPUT};
313
+ border: 1px solid {c._BORDER};
314
+ }}
315
+
316
+ QComboBox:focus {{
317
+ border-color: {c._ACCENT};
318
+ }}
319
+
320
+ QComboBox::drop-down {{
321
+ border: none;
322
+ border-top-right-radius: 6px;
323
+ border-bottom-right-radius: 6px;
324
+ }}
325
+
326
+ QSpinBox, QDoubleSpinBox {{
327
+ border-radius: 6px;
328
+ padding: 4px;
329
+ background: {c._INPUT};
330
+ border: 1px solid {c._BORDER};
331
+ }}
332
+
333
+ QSpinBox:focus, QDoubleSpinBox:focus {{
334
+ border-color: {c._ACCENT};
335
+ }}
336
+
337
+ /* --------------------------------------------------------------------------
338
+ Buttons
339
+ -------------------------------------------------------------------------- */
340
+ QPushButton {{
341
+ background: {c._SEA};
342
+ border: 1px solid {c._BORDER};
343
+ border-radius: 6px;
344
+ padding: 4px 12px;
345
+ }}
346
+
347
+ QPushButton:hover {{
348
+ background: {c._BORDER};
349
+ border-color: {c._BORDER_HI};
350
+ }}
351
+
352
+ QPushButton:pressed {{
353
+ background: {c._BORDER_HI};
354
+ }}
355
+
356
+ QPushButton[primary="true"] {{
357
+ background: {c._ACCENT};
358
+ color: white;
359
+ border: none;
360
+ border-radius: 6px;
361
+ }}
362
+
363
+ QPushButton[primary="true"]:hover {{
364
+ background: {c._ACCENT_HOVER};
365
+ }}
366
+
367
+ QPushButton[primary="true"]:pressed {{
368
+ background: {c._ACCENT_PRESS};
369
+ }}
370
+
371
+ /* --------------------------------------------------------------------------
372
+ Scrollbars
373
+ -------------------------------------------------------------------------- */
374
+ QScrollBar:vertical {{
375
+ background: {c._BG};
376
+ width: 14px;
377
+ margin: 0;
378
+ border-radius: 7px;
379
+ }}
380
+
381
+ QScrollBar::handle:vertical {{
382
+ background: {c._BORDER};
383
+ min-height: 30px;
384
+ border-radius: 5px;
385
+ margin: 3px;
386
+ }}
387
+
388
+ QScrollBar::handle:vertical:hover {{
389
+ background: {c._BORDER_HI};
390
+ }}
391
+
392
+ QScrollBar:horizontal {{
393
+ background: {c._BG};
394
+ height: 14px;
395
+ margin: 0;
396
+ border-radius: 7px;
397
+ }}
398
+
399
+ QScrollBar::handle:horizontal {{
400
+ background: {c._BORDER};
401
+ min-width: 30px;
402
+ border-radius: 5px;
403
+ margin: 3px;
404
+ }}
405
+
406
+ QScrollBar::handle:horizontal:hover {{
407
+ background: {c._BORDER_HI};
408
+ }}
409
+
410
+ QScrollBar::add-line, QScrollBar::sub-line {{
411
+ border: none;
412
+ background: none;
413
+ height: 0;
414
+ width: 0;
415
+ }}
416
+
417
+ QScrollBar::add-page, QScrollBar::sub-page {{
418
+ background: none;
419
+ }}
420
+
421
+ /* --------------------------------------------------------------------------
422
+ Tooltips
423
+ -------------------------------------------------------------------------- */
424
+ QToolTip {{
425
+ background-color: {c._SEA};
426
+ color: {c._TEXT};
427
+ border: 1px solid {c._BORDER};
428
+ border-radius: 6px;
429
+ padding: 6px 10px;
430
+ }}
431
+
432
+ /* --------------------------------------------------------------------------
433
+ Progress bar
434
+ -------------------------------------------------------------------------- */
435
+ QProgressBar {{
436
+ border: none;
437
+ border-radius: 4px;
438
+ text-align: center;
439
+ background: {c._INPUT};
440
+ height: 8px;
441
+ }}
442
+
443
+ QProgressBar::chunk {{
444
+ background: {c._ACCENT};
445
+ border-radius: 4px;
446
+ }}
447
+
448
+ /* --------------------------------------------------------------------------
449
+ Tree / List / Table views
450
+ -------------------------------------------------------------------------- */
451
+ QTreeView, QListView, QTableView {{
452
+ border: 1px solid {c._BORDER};
453
+ border-radius: 8px;
454
+ background: {c._INPUT};
455
+ }}
456
+
457
+ QTreeView::item, QListView::item, QTableView::item {{
458
+ padding: 4px;
459
+ border-radius: 4px;
460
+ }}
461
+
462
+ QTreeView::item:selected, QListView::item:selected, QTableView::item:selected {{
463
+ background: {c._ACCENT};
464
+ color: white;
465
+ }}
466
+
467
+ QTreeView::item:hover:!selected, QListView::item:hover:!selected, QTableView::item:hover:!selected {{
468
+ background: {c._SEA};
469
+ }}
470
+
471
+ /* --------------------------------------------------------------------------
472
+ Headers
473
+ -------------------------------------------------------------------------- */
474
+ QHeaderView::section {{
475
+ background: {c._SEA};
476
+ border: none;
477
+ border-right: 1px solid {c._BORDER};
478
+ border-bottom: 1px solid {c._BORDER};
479
+ padding: 8px;
480
+ }}
481
+
482
+ QHeaderView::section:first {{
483
+ border-top-left-radius: 8px;
484
+ }}
485
+
486
+ QHeaderView::section:last {{
487
+ border-top-right-radius: 8px;
488
+ border-right: none;
489
+ }}
490
+
491
+ /* --------------------------------------------------------------------------
492
+ Splitters
493
+ -------------------------------------------------------------------------- */
494
+ QSplitter::handle {{
495
+ background: {c._BORDER};
496
+ }}
497
+
498
+ QSplitter::handle:horizontal {{
499
+ width: 2px;
500
+ }}
501
+
502
+ QSplitter::handle:vertical {{
503
+ height: 2px;
504
+ }}
505
+
506
+ /* --------------------------------------------------------------------------
507
+ Status bar
508
+ -------------------------------------------------------------------------- */
509
+ QStatusBar {{
510
+ background: {c._SEA};
511
+ border-top: none;
512
+ }}
513
+
514
+ QStatusBar::item {{
515
+ border: none;
516
+ }}
517
+ """
518
+
519
+
520
+ class CatppuccinMochaThemePlugin(ThemePlugin):
521
+ """Catppuccin Mocha theme plugin.
522
+
523
+ Dark variant of the Catppuccin palette — warm, pastel colors on a deep
524
+ navy base. Mauve accent, soft text, calm contrast.
525
+ """
526
+
527
+ @property
528
+ def name(self) -> str:
529
+ return "catppuccin_mocha"
530
+
531
+ @property
532
+ def display_name(self) -> str:
533
+ return "Catppuccin Mocha"
534
+
535
+ @property
536
+ def is_dark(self) -> bool:
537
+ return True
538
+
539
+ def get_theme_definition(self) -> ThemeDefinition:
540
+ return ThemeDefinition(
541
+ primary="#cba6f7", # mauve
542
+ secondary="#f5c2e7", # pink
543
+ success="#a6e3a1", # green
544
+ warning="#fab387", # peach
545
+ error="#f38ba8", # red
546
+ info="#74c7ec", # sapphire
547
+ background="#1e1e2e", # base
548
+ surface="#313244", # surface0
549
+ text="#cdd6f4", # text
550
+ text_secondary="#a6adc8", # subtext0
551
+ border="#45475a", # surface1
552
+ connected="#a6e3a1",
553
+ disconnected="#5c2530",
554
+ )
555
+
556
+
557
+ class EldritchThemePlugin(ThemePlugin):
558
+ """Eldritch theme plugin.
559
+
560
+ Dark theme based on the Eldritch neovim colorscheme — deep blue-violet
561
+ background with magenta, cyan, and acid-green accents.
562
+ """
563
+
564
+ @property
565
+ def name(self) -> str:
566
+ return "eldritch"
567
+
568
+ @property
569
+ def display_name(self) -> str:
570
+ return "Eldritch"
571
+
572
+ @property
573
+ def is_dark(self) -> bool:
574
+ return True
575
+
576
+ def get_theme_definition(self) -> ThemeDefinition:
577
+ return ThemeDefinition(
578
+ primary="#a48cf2", # magenta/purple
579
+ secondary="#04d1f9", # cyan
580
+ success="#37f499", # green
581
+ warning="#f7c67f", # orange
582
+ error="#f16c75", # red
583
+ info="#39DDFD", # bright_cyan
584
+ background="#212337", # bg
585
+ surface="#292e42", # bg_highlight
586
+ text="#ebfafa", # fg
587
+ text_secondary="#ABB4DA", # fg_dark
588
+ border="#414868", # terminal_black
589
+ connected="#37f499",
590
+ disconnected="#722f55", # magenta3
591
+ )
592
+
593
+
594
+ class EvangelionThemePlugin(ThemePlugin):
595
+ """Evangelion theme plugin.
596
+
597
+ NERV / Unit-01 inspired palette: deep violet background with the
598
+ signature Unit-01 purple and Kaworu green accents. Based on xero's
599
+ evangelion.nvim colorscheme.
600
+ """
601
+
602
+ @property
603
+ def name(self) -> str:
604
+ return "evangelion"
605
+
606
+ @property
607
+ def display_name(self) -> str:
608
+ return "Evangelion"
609
+
610
+ @property
611
+ def is_dark(self) -> bool:
612
+ return True
613
+
614
+ def get_theme_definition(self) -> ThemeDefinition:
615
+ return ThemeDefinition(
616
+ primary="#875FAF", # unit01
617
+ secondary="#87FF5F", # kaworu
618
+ success="#8EDF5F", # terminaldogma
619
+ warning="#D99145", # lcl
620
+ error="#DB6088", # misato
621
+ info="#AB92FC", # dummyplug
622
+ background="#201430", # midnight
623
+ surface="#39274C", # casper
624
+ text="#E1D6F8", # rei
625
+ text_secondary="#A1A0AD", # shinji
626
+ border="#483160", # longingus
627
+ connected="#8EDF5F",
628
+ disconnected="#5B2B41", # nerv
629
+ )
630
+
631
+
632
+ class AyakaThemePlugin(ThemePlugin):
633
+ """Ayaka (彩佳) theme plugin.
634
+
635
+ Twilight sakura — warm dark theme inspired by cherry blossoms against
636
+ an indigo evening sky. Soft pinks, wisteria purples, and lantern ambers
637
+ on a deep twilight base. Uses Islands mode for rounded, floating panels.
638
+
639
+ Designed by Ayaka, the Claude partner on this project.
640
+ """
641
+
642
+ @property
643
+ def name(self) -> str:
644
+ return "ayaka"
645
+
646
+ @property
647
+ def display_name(self) -> str:
648
+ return "Ayaka (彩佳)"
649
+
650
+ @property
651
+ def is_dark(self) -> bool:
652
+ return True
653
+
654
+ # --- Ayaka color constants ---
655
+ _BG = "#1a1b2e" # twilight indigo (deepest)
656
+ _ISLAND = "#252640" # dusk cloud (surface / panels)
657
+ _SEA = "#1f2038" # deeper twilight (gaps between islands)
658
+ _INPUT = "#1e1f35" # input fields — slightly warmer than bg
659
+ _BORDER = "#3a3a58" # indigo border
660
+ _BORDER_HI = "#4a4a70" # highlighted border
661
+ _ACCENT = "#f0a0b8" # sakura pink
662
+ _ACCENT_HOVER = "#e890a8" # deeper sakura
663
+ _ACCENT_PRESS = "#d88098" # pressed sakura
664
+ _TEXT = "#e8e0f0" # lavender white
665
+ _TEXT2 = "#a0a0b8" # muted lavender
666
+
667
+ def get_theme_definition(self) -> ThemeDefinition:
668
+ c = self
669
+ return ThemeDefinition(
670
+ primary=c._ACCENT,
671
+ secondary="#b4a0d8", # wisteria
672
+ success="#90c8a0", # young leaves
673
+ warning="#e0b070", # lantern amber
674
+ error="#e07080", # camellia red
675
+ info="#80b8e0", # morning sky
676
+ background=c._BG,
677
+ surface=c._ISLAND,
678
+ sea=c._SEA,
679
+ text=c._TEXT,
680
+ text_secondary=c._TEXT2,
681
+ border=c._BORDER,
682
+ connected="#90c8a0",
683
+ disconnected="#5c2535", # deep plum
684
+ css_overrides=_build_ayaka_css(c),
685
+ )
686
+
687
+
688
+ def _build_ayaka_css(c) -> str:
689
+ """Build Ayaka CSS overrides from the class color constants."""
690
+ return f"""
691
+ /* Ayaka (彩佳) Theme — twilight sakura with Islands layout */
692
+
693
+ /* --------------------------------------------------------------------------
694
+ Menu bar — sea color, sits above the islands
695
+ -------------------------------------------------------------------------- */
696
+ QMenuBar {{
697
+ background: {c._SEA};
698
+ color: {c._TEXT};
699
+ border: none;
700
+ padding: 2px 4px;
701
+ spacing: 2px;
702
+ }}
703
+
704
+ QMenuBar::item {{
705
+ background: transparent;
706
+ padding: 4px 8px;
707
+ border-radius: 6px;
708
+ }}
709
+
710
+ QMenuBar::item:selected {{
711
+ background: {c._BORDER};
712
+ }}
713
+
714
+ /* --------------------------------------------------------------------------
715
+ Menus — island-styled popups
716
+ -------------------------------------------------------------------------- */
717
+ QMenu {{
718
+ background-color: {c._SEA};
719
+ border: 1px solid {c._BORDER};
720
+ border-radius: 8px;
721
+ padding: 4px;
722
+ }}
723
+
724
+ QMenu::item {{
725
+ padding: 8px 24px;
726
+ border-radius: 4px;
727
+ margin: 2px 4px;
728
+ }}
729
+
730
+ QMenu::item:selected {{
731
+ background-color: {c._ACCENT};
732
+ color: #1a1b2e;
733
+ }}
734
+
735
+ QMenu::separator {{
736
+ height: 1px;
737
+ background: {c._BORDER};
738
+ margin: 6px 12px;
739
+ }}
740
+
741
+ QMenu QWidget {{
742
+ background: transparent;
743
+ }}
744
+
745
+ /* --------------------------------------------------------------------------
746
+ Group boxes — island containers
747
+ -------------------------------------------------------------------------- */
748
+ QGroupBox {{
749
+ border-radius: 8px;
750
+ margin-top: 12px;
751
+ padding: 12px 8px 8px 8px;
752
+ background-color: {c._SEA};
753
+ }}
754
+
755
+ QGroupBox::title {{
756
+ subcontrol-origin: margin;
757
+ left: 12px;
758
+ padding: 0 6px;
759
+ background-color: {c._SEA};
760
+ border-radius: 4px;
761
+ }}
762
+
763
+ /* --------------------------------------------------------------------------
764
+ Tabs
765
+ -------------------------------------------------------------------------- */
766
+ QTabWidget::pane {{
767
+ border: 1px solid {c._BORDER};
768
+ border-radius: 8px;
769
+ background: {c._SEA};
770
+ margin-top: -1px;
771
+ }}
772
+
773
+ QTabBar::tab {{
774
+ background: {c._BG};
775
+ border: 1px solid {c._BORDER};
776
+ border-bottom: none;
777
+ border-top-left-radius: 6px;
778
+ border-top-right-radius: 6px;
779
+ padding: 8px 16px;
780
+ margin-right: 2px;
781
+ }}
782
+
783
+ QTabBar::tab:selected {{
784
+ background: {c._SEA};
785
+ border-bottom-color: {c._SEA};
786
+ }}
787
+
788
+ QTabBar::tab:hover:!selected {{
789
+ background: {c._INPUT};
790
+ }}
791
+
792
+ /* --------------------------------------------------------------------------
793
+ Inputs
794
+ -------------------------------------------------------------------------- */
795
+ QLineEdit {{
796
+ border-radius: 6px;
797
+ padding: 4px 8px;
798
+ background: {c._INPUT};
799
+ border: 1px solid {c._BORDER};
800
+ }}
801
+
802
+ QLineEdit:focus {{
803
+ border-color: {c._ACCENT};
804
+ background: {c._SEA};
805
+ }}
806
+
807
+ QComboBox {{
808
+ border-radius: 6px;
809
+ padding: 4px 8px;
810
+ background: {c._INPUT};
811
+ border: 1px solid {c._BORDER};
812
+ }}
813
+
814
+ QComboBox:focus {{
815
+ border-color: {c._ACCENT};
816
+ }}
817
+
818
+ QComboBox::drop-down {{
819
+ border: none;
820
+ border-top-right-radius: 6px;
821
+ border-bottom-right-radius: 6px;
822
+ }}
823
+
824
+ QSpinBox, QDoubleSpinBox {{
825
+ border-radius: 6px;
826
+ padding: 4px;
827
+ background: {c._INPUT};
828
+ border: 1px solid {c._BORDER};
829
+ }}
830
+
831
+ QSpinBox:focus, QDoubleSpinBox:focus {{
832
+ border-color: {c._ACCENT};
833
+ }}
834
+
835
+ /* --------------------------------------------------------------------------
836
+ Buttons
837
+ -------------------------------------------------------------------------- */
838
+ QPushButton {{
839
+ background: {c._SEA};
840
+ border: 1px solid {c._BORDER};
841
+ border-radius: 6px;
842
+ padding: 4px 12px;
843
+ }}
844
+
845
+ QPushButton:hover {{
846
+ background: {c._BORDER};
847
+ border-color: {c._BORDER_HI};
848
+ }}
849
+
850
+ QPushButton:pressed {{
851
+ background: {c._BORDER_HI};
852
+ }}
853
+
854
+ QPushButton[primary="true"] {{
855
+ background: {c._ACCENT};
856
+ color: #1a1b2e;
857
+ border: none;
858
+ border-radius: 6px;
859
+ }}
860
+
861
+ QPushButton[primary="true"]:hover {{
862
+ background: {c._ACCENT_HOVER};
863
+ }}
864
+
865
+ QPushButton[primary="true"]:pressed {{
866
+ background: {c._ACCENT_PRESS};
867
+ }}
868
+
869
+ /* --------------------------------------------------------------------------
870
+ Scrollbars
871
+ -------------------------------------------------------------------------- */
872
+ QScrollBar:vertical {{
873
+ background: {c._BG};
874
+ width: 14px;
875
+ margin: 0;
876
+ border-radius: 7px;
877
+ }}
878
+
879
+ QScrollBar::handle:vertical {{
880
+ background: {c._BORDER};
881
+ min-height: 30px;
882
+ border-radius: 5px;
883
+ margin: 3px;
884
+ }}
885
+
886
+ QScrollBar::handle:vertical:hover {{
887
+ background: {c._BORDER_HI};
888
+ }}
889
+
890
+ QScrollBar:horizontal {{
891
+ background: {c._BG};
892
+ height: 14px;
893
+ margin: 0;
894
+ border-radius: 7px;
895
+ }}
896
+
897
+ QScrollBar::handle:horizontal {{
898
+ background: {c._BORDER};
899
+ min-width: 30px;
900
+ border-radius: 5px;
901
+ margin: 3px;
902
+ }}
903
+
904
+ QScrollBar::handle:horizontal:hover {{
905
+ background: {c._BORDER_HI};
906
+ }}
907
+
908
+ QScrollBar::add-line, QScrollBar::sub-line {{
909
+ border: none;
910
+ background: none;
911
+ height: 0;
912
+ width: 0;
913
+ }}
914
+
915
+ QScrollBar::add-page, QScrollBar::sub-page {{
916
+ background: none;
917
+ }}
918
+
919
+ /* --------------------------------------------------------------------------
920
+ Tooltips
921
+ -------------------------------------------------------------------------- */
922
+ QToolTip {{
923
+ background-color: {c._SEA};
924
+ color: {c._TEXT};
925
+ border: 1px solid {c._BORDER};
926
+ border-radius: 6px;
927
+ padding: 6px 10px;
928
+ }}
929
+
930
+ /* --------------------------------------------------------------------------
931
+ Progress bar
932
+ -------------------------------------------------------------------------- */
933
+ QProgressBar {{
934
+ border: none;
935
+ border-radius: 4px;
936
+ text-align: center;
937
+ background: {c._INPUT};
938
+ height: 8px;
939
+ }}
940
+
941
+ QProgressBar::chunk {{
942
+ background: {c._ACCENT};
943
+ border-radius: 4px;
944
+ }}
945
+
946
+ /* --------------------------------------------------------------------------
947
+ Tree / List / Table views
948
+ -------------------------------------------------------------------------- */
949
+ QTreeView, QListView, QTableView {{
950
+ border: 1px solid {c._BORDER};
951
+ border-radius: 8px;
952
+ background: {c._INPUT};
953
+ }}
954
+
955
+ QTreeView::item, QListView::item, QTableView::item {{
956
+ padding: 4px;
957
+ border-radius: 4px;
958
+ }}
959
+
960
+ QTreeView::item:selected, QListView::item:selected, QTableView::item:selected {{
961
+ background: {c._ACCENT};
962
+ color: #1a1b2e;
963
+ }}
964
+
965
+ QTreeView::item:hover:!selected, QListView::item:hover:!selected, QTableView::item:hover:!selected {{
966
+ background: {c._SEA};
967
+ }}
968
+
969
+ /* --------------------------------------------------------------------------
970
+ Headers
971
+ -------------------------------------------------------------------------- */
972
+ QHeaderView::section {{
973
+ background: {c._SEA};
974
+ border: none;
975
+ border-right: 1px solid {c._BORDER};
976
+ border-bottom: 1px solid {c._BORDER};
977
+ padding: 8px;
978
+ }}
979
+
980
+ QHeaderView::section:first {{
981
+ border-top-left-radius: 8px;
982
+ }}
983
+
984
+ QHeaderView::section:last {{
985
+ border-top-right-radius: 8px;
986
+ border-right: none;
987
+ }}
988
+
989
+ /* --------------------------------------------------------------------------
990
+ Splitters
991
+ -------------------------------------------------------------------------- */
992
+ QSplitter::handle {{
993
+ background: {c._BORDER};
994
+ }}
995
+
996
+ QSplitter::handle:horizontal {{
997
+ width: 2px;
998
+ }}
999
+
1000
+ QSplitter::handle:vertical {{
1001
+ height: 2px;
1002
+ }}
1003
+
1004
+ /* --------------------------------------------------------------------------
1005
+ Status bar
1006
+ -------------------------------------------------------------------------- */
1007
+ QStatusBar {{
1008
+ background: {c._SEA};
1009
+ border-top: none;
1010
+ }}
1011
+
1012
+ QStatusBar::item {{
1013
+ border: none;
1014
+ }}
1015
+ """