MoleditPy-linux 1.16.1a1__py3-none-any.whl → 1.16.1a2__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.
- moleditpy-linux/modules/constants.py +1 -1
- moleditpy-linux/modules/main_window_main_init.py +14 -15
- {moleditpy_linux-1.16.1a1.dist-info → moleditpy_linux-1.16.1a2.dist-info}/METADATA +1 -1
- {moleditpy_linux-1.16.1a1.dist-info → moleditpy_linux-1.16.1a2.dist-info}/RECORD +7 -7
- {moleditpy_linux-1.16.1a1.dist-info → moleditpy_linux-1.16.1a2.dist-info}/WHEEL +0 -0
- {moleditpy_linux-1.16.1a1.dist-info → moleditpy_linux-1.16.1a2.dist-info}/entry_points.txt +0 -0
- {moleditpy_linux-1.16.1a1.dist-info → moleditpy_linux-1.16.1a2.dist-info}/top_level.txt +0 -0
|
@@ -51,16 +51,15 @@ def detect_system_dark_mode():
|
|
|
51
51
|
macOS (defaults read), and GNOME/GTK-based Linux (gsettings). Return
|
|
52
52
|
None if no reliable information is available.
|
|
53
53
|
"""
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
pass
|
|
54
|
+
# Delegate detailed OS detection to `detect_system_theme` and map
|
|
55
|
+
# 'dark' -> True, 'light' -> False. This avoids duplicating the
|
|
56
|
+
# registry and subprocess calls in two places.
|
|
57
|
+
theme = detect_system_theme()
|
|
58
|
+
if theme == 'dark':
|
|
59
|
+
return True
|
|
60
|
+
if theme == 'light':
|
|
61
|
+
return False
|
|
62
|
+
return None
|
|
64
63
|
|
|
65
64
|
def detect_system_theme():
|
|
66
65
|
"""OSの優先テーマ設定を 'dark', 'light', または None として返す。
|
|
@@ -103,16 +102,16 @@ def detect_system_theme():
|
|
|
103
102
|
if p.returncode == 0:
|
|
104
103
|
out = p.stdout.strip().strip("'\n ")
|
|
105
104
|
if 'dark' in out.lower():
|
|
106
|
-
return
|
|
105
|
+
return 'dark'
|
|
107
106
|
if 'light' in out.lower():
|
|
108
|
-
return
|
|
107
|
+
return 'light'
|
|
109
108
|
except Exception:
|
|
110
109
|
pass
|
|
111
110
|
|
|
112
111
|
try:
|
|
113
112
|
p = subprocess.run(['gsettings', 'get', 'org.gnome.desktop.interface', 'gtk-theme'], capture_output=True, text=True)
|
|
114
113
|
if p.returncode == 0 and '-dark' in p.stdout.lower():
|
|
115
|
-
return
|
|
114
|
+
return 'dark'
|
|
116
115
|
except Exception:
|
|
117
116
|
pass
|
|
118
117
|
except Exception:
|
|
@@ -236,8 +235,8 @@ class MainWindowMainInit(object):
|
|
|
236
235
|
self.atom_selection_mode = False
|
|
237
236
|
self.selected_atom_actors = []
|
|
238
237
|
|
|
239
|
-
# 3D編集用の原子選択状態
|
|
240
|
-
self.selected_atoms_3d = set()
|
|
238
|
+
# 3D編集用の原子選択状態 (3Dビューで選択された原子のインデックス)
|
|
239
|
+
self.selected_atoms_3d = set()
|
|
241
240
|
|
|
242
241
|
# 3D編集ダイアログの参照を保持
|
|
243
242
|
self.active_3d_dialogs = []
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: MoleditPy-linux
|
|
3
|
-
Version: 1.16.
|
|
3
|
+
Version: 1.16.1a2
|
|
4
4
|
Summary: A cross-platform, simple, and intuitive molecular structure editor built in Python. It allows 2D molecular drawing and 3D structure visualization. It supports exporting structure files for input to DFT calculation software.
|
|
5
5
|
Author-email: HiroYokoyama <titech.yoko.hiro@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/HiroYokoyama/python_molecular_editor
|
|
@@ -12,7 +12,7 @@ moleditpy-linux/modules/bond_item.py,sha256=zjQHa4vb8xhS9B7cYPRM0nak-f7lr5NQ1uAj
|
|
|
12
12
|
moleditpy-linux/modules/bond_length_dialog.py,sha256=xlx-bU3tVeLfShdVRw6_Geo5Gl9mztlIfTdT9tJ6WMA,14579
|
|
13
13
|
moleditpy-linux/modules/calculation_worker.py,sha256=detE48BW08a2tvmKjMgz8zCShgARzsRH-ABmWrPcqZA,42055
|
|
14
14
|
moleditpy-linux/modules/color_settings_dialog.py,sha256=h4AOKU8dCTenecI8zOM9GfnmKDm7jfe5C4Fa23Budvs,15205
|
|
15
|
-
moleditpy-linux/modules/constants.py,sha256=
|
|
15
|
+
moleditpy-linux/modules/constants.py,sha256=rncfyD-EbegEYA8IeIGYrFm2KHAMKPfiEUQKbA3st1o,4436
|
|
16
16
|
moleditpy-linux/modules/constrained_optimization_dialog.py,sha256=MlWnPze0JJvnqmHx9n3qZWG_h-2kZymT0PQ6lALbCro,29861
|
|
17
17
|
moleditpy-linux/modules/custom_interactor_style.py,sha256=K_uGM6FezY0kZ3zPqoR6f0nowG40ytt-L4UCAbPlwGM,38184
|
|
18
18
|
moleditpy-linux/modules/custom_qt_interactor.py,sha256=6mzaVb3Mhp-4nryG5AraEvPPgBJpotrzVYwrpCAKmVo,2186
|
|
@@ -25,7 +25,7 @@ moleditpy-linux/modules/main_window_dialog_manager.py,sha256=5WU6mFABB0aI4XCywP-
|
|
|
25
25
|
moleditpy-linux/modules/main_window_edit_3d.py,sha256=FStBWVeDVAM2MoO-JCTjPM-G7iT8QZUHxsb0dS4MEAI,19553
|
|
26
26
|
moleditpy-linux/modules/main_window_edit_actions.py,sha256=8tR0rYfgWYgdKTxBP4snzpxhiD2DExSKyf4jzSWb6sE,64598
|
|
27
27
|
moleditpy-linux/modules/main_window_export.py,sha256=f_Z4qVYKBTe06lGTFqjd3deluUdkQvHhZYa81h7UpBM,34465
|
|
28
|
-
moleditpy-linux/modules/main_window_main_init.py,sha256=
|
|
28
|
+
moleditpy-linux/modules/main_window_main_init.py,sha256=igIxiBiC707QlI6v69GilZ4kmPLjFMNoGH62fENqUxA,75293
|
|
29
29
|
moleditpy-linux/modules/main_window_molecular_parsers.py,sha256=8JAIgr1axzmJqX_Ue-Adkl8e_8B2Th9yutQbau8EEWQ,43401
|
|
30
30
|
moleditpy-linux/modules/main_window_project_io.py,sha256=2ArkW23L4ahQIiktCCXlNsJphU0awO5YzJGihIJsn1c,17021
|
|
31
31
|
moleditpy-linux/modules/main_window_string_importers.py,sha256=yrZblvPG840qnqVEJf__XVfNnWl_r3vt68Abfs2aYDQ,10674
|
|
@@ -44,8 +44,8 @@ moleditpy-linux/modules/template_preview_view.py,sha256=AXUaFJR0E1yX9dBY9IDbxYNs
|
|
|
44
44
|
moleditpy-linux/modules/translation_dialog.py,sha256=gIG_mz4wc4y4ZNq02Ql33ek6B-DrOf1pdWF3FsViCT4,14394
|
|
45
45
|
moleditpy-linux/modules/user_template_dialog.py,sha256=VhLh7MNbElySnAIHjkiRaYLRHJLeK-NcHtAX5yqjBzI,27955
|
|
46
46
|
moleditpy-linux/modules/zoomable_view.py,sha256=ZgAmmWXIKtx7AhMjs6H6PCyvb_kpYuankf8UxsZX9mg,4569
|
|
47
|
-
moleditpy_linux-1.16.
|
|
48
|
-
moleditpy_linux-1.16.
|
|
49
|
-
moleditpy_linux-1.16.
|
|
50
|
-
moleditpy_linux-1.16.
|
|
51
|
-
moleditpy_linux-1.16.
|
|
47
|
+
moleditpy_linux-1.16.1a2.dist-info/METADATA,sha256=Iql60K2DoNimGroDVUAJd_X-tVdxYrUbSZzexmTyF_8,17437
|
|
48
|
+
moleditpy_linux-1.16.1a2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
49
|
+
moleditpy_linux-1.16.1a2.dist-info/entry_points.txt,sha256=-OzipSi__yVwlimNtu3eiRP5t5UMg55Cs0udyhXYiyw,60
|
|
50
|
+
moleditpy_linux-1.16.1a2.dist-info/top_level.txt,sha256=0HXd5y4UKKU7dhcX0rpK-30kGLmB1GdNQPy0T82HWYY,16
|
|
51
|
+
moleditpy_linux-1.16.1a2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|