230 Commits

Author SHA1 Message Date
f7c1c96461 Merge pull request '04-06-2025_large_update' (#35) from 04-06-2025_large_update into main
Reviewed-on: #35
2025-06-04 19:34:40 +02:00
f682858051 large update 2025-06-04 18:49:17 +02:00
68580d0ded return and back to back 2025-05-24 18:12:05 +02:00
b764547d16 fix in export method (remove !=0 by nemelist) 2025-05-24 16:26:44 +02:00
7f4fabe856 Enhanced export functionality with error handling and updated Active method implementation for improved error management 2025-05-24 14:53:56 +02:00
79f6fc0265 finish logging 2025-05-23 12:36:28 +02:00
5ac37ad9ad remove USER_FILE usage in ssl_decrypt.py and ssl_encrypt.py; switch to argparse for command-line arguments 2025-05-21 21:29:21 +02:00
4cdcfadbac class descriptions added redundancy reduced 2025-05-20 12:31:30 +02:00
55f2119bc3 conversion to app and configmanager part 2 export still missing 2025-05-19 21:35:14 +02:00
d6c20b81f9 part 1 load data from dictionary works 2025-05-18 12:47:52 +02:00
0c4d000d96 add ckeck_key_is_exist() for import 2025-05-12 16:48:48 +02:00
3da54642a0 ssl_de/encrypt new works 2025-05-12 15:11:40 +02:00
fb0158d1cd replace all check_call with subprocess.run 2025-05-11 22:00:28 +02:00
6604650adf ssl_decrypt.py now with output and check_call replace with subprocess.run 2025-05-11 18:24:57 +02:00
a903666a26 fix ssl_encrypt.py read user_log datei added again 2025-05-10 14:23:22 +02:00
d0adaa76e4 AppConfig and common_utils further developed for Zenrale configuration 2025-05-10 01:55:30 +02:00
481362b2e6 add new methode of get_username() as fallback and add own file_parser for replace con_to_dict 2025-05-09 16:04:43 +02:00
ca26576eab test with methode for username 2025-05-07 22:42:08 +02:00
f4a51f0050 fix message window a path errors 2025-05-07 20:25:09 +02:00
c56b42df3e add .gitignore to .gitignore 2025-05-07 19:29:00 +02:00
a62394e40e add remove .gitignore file 2025-05-07 19:28:35 +02:00
d6e9613157 new file .gitignore 2025-05-07 19:26:48 +02:00
786b909adc remove files and folders that are not for repo 2025-05-07 19:24:34 +02:00
a8aba71638 tooltips add x_offset: int = 65, y_offset: int = 40 as atribute for edit 2025-05-07 12:46:52 +02:00
742c6d0cc5 tooltip message complete with AppConfig Manager 2025-05-07 11:41:33 +02:00
42870e2942 trace_add() for menu labels works 2025-05-07 10:47:49 +02:00
9a4d8b3506 optimize performance 06-05-2025-23:00 2025-05-07 08:14:46 +02:00
dba6138aa7 optimize performance 06-05-2025 2025-05-06 19:47:14 +02:00
d0aed9e253 optimize performance 03-05-2025 2025-05-05 20:42:19 +02:00
0cdad100b6 part two more optimization with app_config file 2025-05-03 17:58:19 +02:00
2cdc40f414 part two more optimization with app_config file 2025-05-03 17:57:57 +02:00
2311661735 part one more optimization with app_config file 2025-04-30 23:24:00 +02:00
c10667ec21 bug fix in rename 2025-04-30 10:43:51 +02:00
08bef8fe6e add_wp_app_config.py for central configuration 2025-04-30 09:49:57 +02:00
2e94a324a6 add wp_app_config.py for central configuration 2025-04-30 09:48:40 +02:00
18ed97bf20 delete empty row 2025-04-29 16:20:07 +02:00
5dcfc91621 replace more "with open" 2025-04-29 15:09:56 +02:00
5fb4e68867 methods optimized-13:24 2025-04-29 13:25:03 +02:00
19d413ea97 optimized remove with open 2025-04-29 12:32:23 +02:00
213f772f40 methods optimized in wirepy and cls_mth_fc 2025-04-29 11:39:05 +02:00
6f02724daa with opening reduced 2025-04-29 09:02:06 +02:00
53f66ea76d method info and update to staticmethod 2025-04-28 21:16:21 +02:00
3039dbecb0 now only methodologies within the class 2025-04-28 19:55:44 +02:00
eadc2a06bf methods optimized 2025-04-28 12:35:19 +02:00
4eb9d6acd4 Message window optimized2 2025-04-26 22:33:59 +02:00
97ea07d34b Message window optimized 2025-04-26 21:32:35 +02:00
cd625d173d empty row add 2025-04-26 00:49:34 +02:00
950e04a246 korreckturen throughout code2 2025-04-26 00:41:17 +02:00
1a853d4ff1 korreckturen throughout code 2025-04-26 00:28:34 +02:00
f6204c9071 line formatted for better reading 2025-04-25 17:37:04 +02:00
f9ecd54e0a methods back in wirepy as functions "theme dark and light" 2025-04-25 16:19:36 +02:00
67ff24f0b6 fix set_file and remove wg_set variable 2025-04-25 14:42:37 +02:00
af702f297b rename wg_set to file_set fix LxTools.clean_files 2025-04-25 13:40:19 +02:00
d2a57b329b Class LxTools expands wg_set to set_file renamed 2025-04-24 23:04:34 +02:00
87943b2489 add new class LxTools and funktion to methode in new class 2025-04-24 12:43:39 +02:00
c43c12f961 rows reformat 2025-04-23 14:29:47 +02:00
3bab0710a4 replace "str(" with f"format{example}" 2025-04-23 14:18:06 +02:00
aa66f4dc68 remove return select_tl 2025-04-22 17:42:47 +02:00
c220951781 fix when list emty by start of wirepy 2025-04-22 17:11:46 +02:00
6c0662c62c import sorted 2025-04-22 14:26:04 +02:00
5753a35d6c fix new tooltip signal now in modul cls_mth_fc.py 2025-04-22 14:22:39 +02:00
47bdfbfb17 new class foe tooltip 2025-04-21 22:25:10 +02:00
2a3bf2bbcb add new class for tooltip 2025-04-21 13:29:36 +02:00
8896f59efd fix in converter and fix in import for no valid files 2025-04-21 09:39:35 +02:00
c58a630e25 format fixes 2025-04-20 00:43:01 +02:00
dc6f8cb094 format fixes 2025-04-20 00:09:04 +02:00
dcda647e90 format fixes 2025-04-19 23:29:06 +02:00
2a995eabd5 in cont_to_dict if replaced by get 2025-04-19 19:29:46 +02:00
ea750b0cfc fix tooltip "True" and "False" back to True and False 2025-04-19 14:40:37 +02:00
980ce3c7a7 Gitea response improved 2025-04-19 14:28:34 +02:00
28cc423138 class to functions and check=True to subprocess.run 2025-04-18 22:12:18 +02:00
39550b392d format with blank and pylint 2025-04-18 20:50:32 +02:00
582ef21042 reformat files 2025-04-18 15:04:22 +02:00
ca58ac86a4 fix ssldecrypt 2025-04-17 16:25:24 +02:00
177fa1cc34 fix installer 2025-04-13 20:44:28 +02:00
ca1a7a6b94 - Installer update for Open Suse Tumbleweed and Leap
- add symbolic link wirepy.py
2025-04-13 20:38:02 +02:00
a49c5b00e1 - Installer update python311 to python313 for Open Suse
- add symbolic link wirepy.py
2025-04-13 13:04:51 +02:00
75a247797d add install >/dev/null 2>&1 2025-04-09 08:51:18 +02:00
4b019b0c1f fix2 install 2025-04-09 08:27:21 +02:00
ab78eb4f59 fix installer 2025-04-09 08:16:25 +02:00
9f3f0246b4 Installer now with query and remove
icons merged
2025-04-09 08:08:48 +02:00
5302aae807 Installers will support other systems again
Installer is now finished clean with wrong password
Rename wg_main to wirepy
2025-04-07 12:46:45 +02:00
13832d916f ssl encrypt and decrypt works now 2025-03-19 21:24:33 +01:00
1667682c9d ssl part one 2025-03-08 22:13:22 +01:00
8771be760d Fixes a new user files create 2025-03-03 18:27:49 +01:00
97bf9df041 replace-old-files-with-new-files-and-remove-no longer needed 2025-03-02 15:33:42 +01:00
1bba45a6c1 add-new-install 2025-03-02 15:29:38 +01:00
a5eb6293c6 add-new-cls-mth-fc-file 2025-03-02 15:27:37 +01:00
6e54529c0f Merge pull request 'Fix for allow ipv6' (#31) from 24-02-2025 into main
Reviewed-on: #31
2025-02-24 18:59:04 +01:00
e28235af4b Fix for allow ipv6 2025-02-24 18:51:14 +01:00
862cc91fa1 Merge pull request '1.11.2124' (#30) from 1.11.2124 into main
Reviewed-on: #30
2024-11-17 13:04:26 +01:00
5fe6fd3f29 - Update Translate Files 2024-11-17 12:51:46 +01:00
48a48ffd4c - Update Translate Files 2024-11-17 12:49:41 +01:00
1278b02a95 - Update Translate Files 2024-11-17 12:28:05 +01:00
22abe9f8b9 Merge pull request '- Update Translate Files' (#29) from 1.11.1924 into main
Reviewed-on: #29
2024-11-17 12:13:23 +01:00
52f22beec6 - Update Translate Files 2024-11-17 12:11:55 +01:00
8754e7ecda Merge pull request '- Update Translate Files' (#28) from 1.11.1824 into main
Reviewed-on: #28
2024-11-17 11:48:24 +01:00
a6742a0c0e - Update Translate Files 2024-11-17 11:46:11 +01:00
6b75713121 Merge pull request '1.11.1824' (#27) from 1.11.1824 into main
Reviewed-on: #27
2024-11-17 11:45:10 +01:00
762694aa94 - Update Translate Files 2024-11-17 11:42:58 +01:00
cc54f329fe - Update Translate Files 2024-11-17 11:41:13 +01:00
8c01c1b984 - Update Translate Files 2024-11-17 11:40:33 +01:00
ebafdbdcb3 - - Fix Checkbutton Autostart when first install Wire-Py 2024-11-17 10:48:47 +01:00
ce4f6c84dc - - Fix Checkbutton Autostart when first install Wire-Py 2024-11-15 18:09:21 +01:00
b68908eaef Merge pull request '1.11.1124' (#25) from 1.11.1124 into main
Reviewed-on: #25
2024-11-13 17:51:07 +01:00
c4565ed169 - fix return 'no Updates' 2024-11-10 20:57:52 +01:00
485cfff457 - fix return 'no Updates' 2024-11-10 20:57:19 +01:00
1a0fc74a80 - fix return 'no Updates' 2024-11-10 20:55:33 +01:00
971c86c97f - Translate file de_De complete
- new FrameWidget for rename Entry and rename Button
2024-11-10 20:31:27 +01:00
66dd27cc64 Merge pull request '1.11.1024' (#24) from 1.11.1024 into main
Reviewed-on: #24
2024-11-10 17:57:57 +01:00
cf71eae7d3 - Translate file de_De complete
- new FrameWidget for rename Entry and rename Button
2024-11-10 15:08:00 +01:00
1f80d5342c - Translate file de_De complete
- new FrameWidget for rename Entry and rename Button
2024-11-10 14:51:50 +01:00
e719a1f23f - Preparation for language translation part 5 2024-11-10 13:23:02 +01:00
a0da356cec - Preparation for language translation part 5 2024-11-10 13:17:11 +01:00
ac87e0a4a7 - Preparation for language translation part 4 2024-11-10 11:20:11 +01:00
6a3a982057 - Preparation for language translation part 4 2024-11-10 11:05:32 +01:00
aab90eec70 - Preparation for language translation part 3 2024-11-10 00:23:49 +01:00
511d5f72df - Preparation for language translation part 2 2024-11-09 22:09:23 +01:00
ed93e99026 - Preparation for language translation part 2 2024-11-09 22:08:39 +01:00
10c3b07053 - Preparation for language translation part 1
- separate folder for general icons
- install edit for new dir lx-icons
2024-11-09 19:01:53 +01:00
e9814f2b60 - Preparation for language translation part 1
- separate folder for general icons
- install edit for new dir lx-icons
2024-11-09 17:09:23 +01:00
c470783ff2 - methods from class MainWindow move to class FrameWidgets for active color_label when theme change
- optimize columnconfigure, rowconfigure in class MainWindow and FrameWidgets
- add new Frame for Widgets on Bottom
- optimize from tkinter * to from tkinter import filedialog, ttk, TclError
2024-11-08 21:39:28 +01:00
2fac03a927 - methods from class MainWindow move to class FrameWidgets for active color_label when theme change
- optimize columnconfigure, rowconfigure in class MainWindow and FrameWidgets
- add new Frame for Widgets on Bottom
- optimize from tkinter * to from tkinter import filedialog, ttk, TclError
2024-11-08 21:32:45 +01:00
03a7e48018 Merge pull request '1.11.0824' (#23) from 1.11.0824 into main
Reviewed-on: #23
2024-11-08 21:24:31 +01:00
090842ab28 wg_func.py aktualisiert 2024-11-08 21:23:59 +01:00
8a32065676 - methods from class MainWindow move to class FrameWidgets for active color_label when theme change
- optimize columnconfigure, rowconfigure in class MainWindow and FrameWidgets
- add new Frame for Widgets on Bottom
- optimize from tkinter * to from tkinter import filedialog, ttk, TclError
2024-11-08 21:21:43 +01:00
bc0d46d633 - methods from class MainWindow move to class FrameWidgets for active color_label when theme change
- optimize columnconfigure, rowconfigure in class MainWindow and FrameWidgets
- add new Frame for Widgets on Bottom
- optimize from tkinter * to from tkinter import filedialog, ttk, TclError
2024-11-08 20:49:59 +01:00
80c63eaf78 rows adjusted 2024-11-07 19:49:35 +01:00
9eb99f0859 Changelog aktualisiert
Changelog  updated
2024-11-07 19:30:08 +01:00
feb6217637 wg_func.py aktualisiert
Version number adjusted
2024-11-07 19:27:57 +01:00
4bfc8c318e Version number adjusted 2024-11-07 19:24:16 +01:00
5f6aaa6cf1 Merge pull request '1.11.0724' (#22) from 1.11.0724 into main
Reviewed-on: #22
2024-11-07 19:16:22 +01:00
0a5341fab7 remove classes and add methods to class FrameWidgets (removed self errors) 2024-11-07 18:04:58 +01:00
414a36b436 small corrections 2024-11-07 17:15:35 +01:00
fecbf2ab46 - Add Autoconnect settings to settings.conf
- Add run_as Bash script and open_gitea.py python script
- Add Tooltip disable/enable
- Rename settings to settings.conf for theme, updates and tooltip enable in one file
2024-10-28 07:14:39 +01:00
9d44e7ab42 - Add Autoconnect settings to settings.conf
- Add run_as Bash script and open_gitea.py python script
- Add Tooltip disable/enable
- Rename settings to settings.conf for theme, updates and tooltip enable in one file
2024-10-28 07:13:44 +01:00
18e042400c - Optimize Class and Tooltip 2024-10-26 12:35:18 +02:00
63ed0abc98 testtheme.py gelöscht 2024-10-26 12:31:53 +02:00
3102c685fd Merge pull request '1.10.2124' (#21) from 1.10.2124 into main
Reviewed-on: #21
2024-10-22 12:41:47 +02:00
0769cabc1e - Optimize Class. Move to wg_main Import Start/StopBTN and Tooltip 2024-10-22 12:40:14 +02:00
33e31f06bb - Optimize Class. Move to wg_main Import Start/StopBTN and Tooltip 2024-10-21 22:12:26 +02:00
cfffd590cb - Optimize Class. Move to wg_main Import Start/StopBTN and Tooltip 2024-10-21 22:11:24 +02:00
ec10f912ea Merge pull request '- Fix a ConToDict Class when Endpoint not in Wireguard config file' (#20) from 1.10.2024 into main
Reviewed-on: #20
2024-10-20 12:20:41 +02:00
0fe591d70c - Fix a ConToDict Class when Endpoint not in Wireguard config file 2024-10-20 12:19:28 +02:00
96164eb132 Merge pull request '- Add Options, Help, Update Label and Update Menubutton' (#19) from 1.10.2024 into main
Reviewed-on: #19
2024-10-20 02:15:23 +02:00
c4a4d328ae - Add Options, Help, Update Label and Update Menubutton
- Theme now separate Light and Dark
 - Add Own Tooltip (Class and def's) Part One
2024-10-20 02:10:23 +02:00
a19f889950 Merge pull request '1.10.1924' (#18) from 1.10.1924 into main
Reviewed-on: #18
2024-10-19 18:06:55 +02:00
bcdabadd0e - Add Options, Help, Update Label and Update Menubutton
- Theme now separate Light and Dark
2024-10-19 18:04:36 +02:00
c645d23514 - Theme modify to water-theme
- add ttk.Menubutton vor modern Menu and automatic theme and textvariable for color on font in menu
2024-10-18 22:34:43 +02:00
46514693bd - Theme modify to water-theme
- add ttk.Menubutton vor modern Menu and automatic theme and textvariable for color on font in menu
2024-10-18 22:33:20 +02:00
e44fbeb9e4 - Menu add
- New Modern Dark and Light(default) Theme
2024-10-16 20:38:36 +02:00
de2929896d Merge pull request '- Create file for settings (Autoupdate)' (#17) from 1.10.1224 into main
Reviewed-on: #17
2024-10-12 13:39:04 +02:00
58e341082d - Create file for settings (Autoupdate)
- Create file for theme
 - Autoupdate in Options
 - Dark Theme for Wire-Py
2024-10-12 13:36:27 +02:00
f9d4256679 Merge pull request 'Fix msg_window and remove x , y argument' (#16) from 1.10.0424 into main
Reviewed-on: #16
2024-10-04 21:01:26 +02:00
cf94bf3d1d Fix msg_window and remove x , y argument
Install further adapted and with colored
text if user is not in group sudo or wheel.
Added to install Opensuse for installation
2024-10-04 18:37:21 +02:00
a0b895438c Merge pull request '28-09-2024' (#15) from 28-09-2024 into main
Reviewed-on: #15
2024-09-28 14:17:38 +02:00
438e2b9de7 Changelog create When exporting, the folder is now copied to /tmp and the non .conf files are deleted before the zip file is created. In main.py os import removed. Since os have been replaced by pathlib and shutil.
Start with version number 1.4.7
Message window size corrected so text is displayed better
2024-09-28 14:13:07 +02:00
825aa46fae fix installer add .keys file 2024-09-26 21:59:41 +02:00
d39a16cab8 fix msg_boxes when tunnel list = 0 a Start, Delete and Export 2024-09-26 21:42:22 +02:00
e1623ab184 little fixes 2024-09-26 21:18:48 +02:00
6689d8110f info icon shadow fix end msg Export fix to 2024-09-26 12:37:36 +02:00
392b6c94b5 ad max 12-character message, no character message and special_characters message for entry label 2024-09-25 20:26:08 +02:00
8cd5fc28e4 in msg_window two further parameters to be added to the pass, so height and wide can also be specified.
In rename, messages come now if new names do not fit
Fix Index Error on msg_window()
2024-09-23 21:09:41 +02:00
428854f25a fix scrollbar view with set self.y_height = 330 to self.y_height = 340 2024-09-22 20:15:05 +02:00
63b9c7935b If tunnel is renamed and this is in the car start,
is now renamed the label
2024-09-22 20:12:31 +02:00
9899395cf9 Descriptions added in wg_func-py 2024-09-22 17:17:02 +02:00
7e461db7a9 add con_to_dict in import for write PreSharedKey in .key File to warning if tunnel has already been imported and delete that the key is deleted again
now works
2024-09-22 16:24:22 +02:00
f90b10f948 add con_to_dict in import for write PreSharedKey in .key File to warning if tunnel has already been imported and delete that the key is deleted again 2024-09-22 00:56:08 +02:00
53f1d4e8f4 add rename Label rename works 2024-09-21 12:40:18 +02:00
217a73182a chown Export File to 1000:1000 2024-09-20 21:25:51 +02:00
a3f3604a1f Create your own message boxes for export 2024-09-20 16:06:15 +02:00
41391b0ef1 replace tar with zip and Check if Zip file is empty 2024-09-20 14:55:15 +02:00
3965844b6b fix install and .desktop File Tar works now for user home and filebrowser.askfilebrowser start now in user home 2024-09-19 22:23:34 +02:00
b633fac5a0 install rollback bash to py wirepy and wirepy rollback to py 2024-09-19 20:30:01 +02:00
4e841301f7 fix a filedialog for hidden Files work
install rollback to bash for start wirepy and wirepy rollback to bash
2024-09-19 18:54:14 +02:00
ad59c3ba00 fix set rights in install and a .conf a import Tunnel Filedialog Part 1 /home when open 2024-09-19 10:33:45 +02:00
5c06db3681 set rights in install and a .conf a import Tunnel Filedialog Part 1 /home when open 2024-09-18 22:33:04 +02:00
94558d32a9 fix rename in Messagebox warning to error 2024-09-18 11:45:32 +02:00
b8b9b5f8f7 Merge remote-tracking branch 'origin/wire-py-reformat-17-09-2024' 2024-09-18 11:18:20 +02:00
53124ed7c4 fix checkbox disable and policy rename main.py to wg_main.py 2024-09-18 11:11:12 +02:00
0fbdcb826a fix policy File 2024-09-17 22:41:42 +02:00
448d09ca4a install fix for set dir right 2024-09-17 20:59:18 +02:00
80c29c4f11 new format little fixes icons sort add policy add .desktop File install Part 2 2024-09-17 20:57:11 +02:00
f09e6eed0d in delete replace open with Path
install fixes
2024-09-15 02:09:43 +02:00
4c89488950 Merge pull request 'wire-py-reformat-14-09-2024' (#14) from wire-py-reformat-14-09-2024 into main
Reviewed-on: #14
2024-09-14 23:31:00 +02:00
d1a822fff0 little fixes, add msg_window()
function for Messagebox to show a tk.Toplevel()
replace var = open() with:
with open() as var:
and remove by classes (tk.tk) and super()
2024-09-14 23:25:48 +02:00
8fa6e6374f little fixes a labels when stop and start, installer first functions works 2024-09-10 20:06:33 +02:00
35406026f0 little fixes replace os.system with check_call
first steps in install Script add wg_start.service file
2024-09-08 20:31:46 +02:00
607589d44a little fixes 2024-09-07 23:52:16 +02:00
858e9f07fe little fixes 2024-09-06 18:20:29 +02:00
c0ae2d2b75 Merge pull request 'wire-py-reformat-14-08-2024' (#13) from wire-py-reformat-14-08-2024 into main
Reviewed-on: #13
2024-09-05 22:22:00 +02:00
0c8627fe97 add Frame widget 3
for Buttons and Listbox with Scrollbar.
all Widgets new format
delete works now of disable checkbox when Listbox empty (part two) add Menu widget with one Button
2024-09-05 22:20:07 +02:00
c157154b1c add Frame widget 3
for Buttons and Listbox with Scrollbar.
all Widgets new format
delete works now of disable checkbox when Listbox empty (part two)
2024-09-05 22:17:31 +02:00
e4774abf19 Merge pull request 'fixes on empty Listbox now is disable and now works autoconnect label with read and write, delete works now with read and write' (#12) from wire-py-reformat-14-08-2024 into main
Reviewed-on: #12
2024-09-04 20:55:51 +02:00
2aa9f907b5 fixes on empty Listbox now is disable and now works autoconnect label with read and write, delete works now with read and write 2024-09-04 20:52:44 +02:00
7b1e543428 Merge pull request 'add if question and add autoconnect, autoconnect_var to class Filehandle in box_set no finish!' (#11) from wire-py-reformat-14-08-2024 into main
Reviewed-on: #11
2024-09-04 09:20:05 +02:00
aa84a5ad79 add if question and add autoconnect, autoconnect_var to class Filehandle in box_set no finish! 2024-09-04 09:18:47 +02:00
6f83fc7162 Merge pull request 'wire-py-reformat-14-08-2024' (#10) from wire-py-reformat-14-08-2024 into main
Reviewed-on: #10
2024-09-04 06:26:30 +02:00
00a9436dad add class FileHandle,
add Label to show autoconnect Tunnel
disable checkbox when Listbox is empty or no select Tunnel
2024-09-03 21:27:36 +02:00
b82bd6d9e7 little fixes a " " to ' ' 2024-08-31 17:50:42 +02:00
e5d86f1f90 columnconfigure on all widgets set 2024-08-27 19:14:49 +02:00
6173a653f9 import datetime for datetime in zip_name a export Tunnel 2024-08-26 19:50:06 +02:00
b70400b456 Merge pull request 'wire-py-reformat-14-08-2024' (#9) from wire-py-reformat-14-08-2024 into main
Reviewed-on: #9
2024-08-25 20:32:05 +02:00
4060a92a0e add export Tunnel as zip 2024-08-25 20:28:32 +02:00
980c5a9010 fix when Filname > 17 first copy file after rename 2024-08-25 15:39:23 +02:00
8d657f7c09 remove a ',' in DNS Name 2024-08-25 11:03:15 +02:00
4574f1416e fix label when laat Tunnel delete and fix Tuple error in delete and Start/Stop when listbox empty 2024-08-24 12:34:44 +02:00
e25bc154ea Merge pull request 'wire-py-reformat-14-08-2024' (#8) from wire-py-reformat-14-08-2024 into main
Reviewed-on: #8
2024-08-23 18:00:19 +02:00
bc8dd7fe6d disable button start/stop not 100% work 2024-08-23 16:15:56 +02:00
9667bf0690 little fixes in Class Import 2024-08-23 14:37:19 +02:00
c87ba4493d add method init_and_report and label_empty to Class ShowAddress 2024-08-23 12:57:07 +02:00
101a2167b6 In FrameWidged Class else Block StrVar, this resorts reference and variable assignment together 2024-08-23 10:22:18 +02:00
b6555974ea fixed error when active tunnel is deleted,
now also the Address Label is emptied
2024-08-23 10:07:38 +02:00
357cae2d2a Remove open file function, add Show Address Labels with tk.StrVar when remove a not active Tunnel Labels of Active Tunnel removed! 2024-08-23 02:00:24 +02:00
7aa3cd75fe Merge pull request 'Set Style to Clam' (#7) from wire-py-reformat-14-08-2024 into main
Reviewed-on: #7
2024-08-21 22:52:27 +02:00
2601b7b0ce Set Style to Clam
Improved layout of widgets
2024-08-21 22:39:18 +02:00
0b9eec8d1d Merge pull request 'add Class StartStopBTN to wg_func.py' (#6) from wire-py-reformat-14-08-2024 into main
Reviewed-on: #6
2024-08-21 12:52:51 +02:00
7b4226c704 add Class StartStopBTN to wg_func.py 2024-08-21 12:51:48 +02:00
b9083d4698 Merge pull request 'add file dict_to_address for' (#5) from wire-py-reformat-14-08-2024 into main
Reviewed-on: #5
2024-08-21 12:00:18 +02:00
d490f65825 Merge branch 'main' into wire-py-reformat-14-08-2024 2024-08-21 11:55:11 +02:00
70793075e9 add file dict_to_address for
address a active Tunnel. Label green pack in Class.
add Class to convert fileoutput as String to Dictionary
2024-08-21 11:50:01 +02:00
6bd8775490 Merge pull request 'add Label Interface and Peer to new FrameWidget one and two. when import Tunnel then add to list works and remove of list when Tunnel delete.(with Label active on and off)' (#4) from wire-py-reformat-14-08-2024 into main
Reviewed-on: #4
2024-08-19 23:30:45 +02:00
999fe7be84 add Label Interface and Peer to new FrameWidget one and two. when import Tunnel then add to list works and remove of list when Tunnel delete.(with Label active on and off)
add to class and methods open a avtive Tunnel when Wire-Py open, when import and start a Tunnel
2024-08-19 23:28:53 +02:00
51e372d68c Merge pull request 'add class ListTunnels and class ImportTunnel, and add class ExportTunnels (ExportTunnels no finish)' (#3) from wire-py-reformat-14-08-2024 into main
Reviewed-on: #3
2024-08-19 08:31:09 +02:00
6ab9c43c3a add class ListTunnels and class ImportTunnel, and add class ExportTunnels (ExportTunnels no finish) 2024-08-19 08:29:35 +02:00
9c5004e92a Merge pull request 'add class TunnelActive to wg_func works' (#2) from wire-py-reformat-14-08-2024 into main
Reviewed-on: #2
2024-08-19 00:15:43 +02:00
213032252a add class TunnelActive to wg_func works 2024-08-18 23:23:43 +02:00
ae32cc9e74 Merge pull request 'wire-py-reformat-14-08-2024' (#1) from wire-py-reformat-14-08-2024 into main
Reviewed-on: #1
2024-08-18 22:39:18 +02:00
5606ce15b9 add class Frame and class Massage, delete funktion go 100%, add resize window, add warning pic 2024-08-18 22:34:07 +02:00
b84b783fa0 add class Frame and class Massage, delete funktion go 100%, add resize window 2024-08-18 22:33:16 +02:00
214 changed files with 3354 additions and 362 deletions

6
.gitignore vendored Normal file
View File

@ -0,0 +1,6 @@
debug.log
.venv
.venv.bak
.idea
.vscode
__pycache__

View File

@ -1,6 +0,0 @@
<component name="InspectionProjectProfileManager">
<settings>
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</settings>
</component>

7
.idea/misc.xml generated
View File

@ -1,7 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Black">
<option name="sdkName" value="Python 3.12 (wire-py)" />
</component>
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.12 (wire-py)" project-jdk-type="Python SDK" />
</project>

8
.idea/modules.xml generated
View File

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/wire-py.iml" filepath="$PROJECT_DIR$/.idea/wire-py.iml" />
</modules>
</component>
</project>

6
.idea/vcs.xml generated
View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

10
.idea/wire-py.iml generated
View File

@ -1,10 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.venv" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

136
.idea/workspace.xml generated
View File

@ -1,136 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AutoImportSettings">
<option name="autoReloadType" value="SELECTIVE" />
</component>
<component name="ChangeListManager">
<list default="true" id="940e1630-c825-4d4c-be80-bc11f543c122" name="Changes" comment="wg_import_select in wg_func.py extended">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/main.py" beforeDir="false" afterPath="$PROJECT_DIR$/main.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/wg_func.py" beforeDir="false" afterPath="$PROJECT_DIR$/wg_func.py" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="FileTemplateManagerImpl">
<option name="RECENT_TEMPLATES">
<list>
<option value="Python Script" />
</list>
</option>
</component>
<component name="Git.Settings">
<option name="RECENT_BRANCH_BY_REPOSITORY">
<map>
<entry key="$PROJECT_DIR$" value="main" />
</map>
</option>
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="ProjectColorInfo">{
&quot;associatedIndex&quot;: 3
}</component>
<component name="ProjectId" id="2kSbZdjOvr0wsVJSNcaMwSfVaxR" />
<component name="ProjectLevelVcsManager" settingsEditedManually="true">
<ConfirmationsSetting value="2" id="Add" />
</component>
<component name="ProjectViewState">
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent">{
&quot;keyToString&quot;: {
&quot;ASKED_ADD_EXTERNAL_FILES&quot;: &quot;true&quot;,
&quot;Python.main.executor&quot;: &quot;Run&quot;,
&quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
&quot;git-widget-placeholder&quot;: &quot;wire-py-reformat-14-08-2024&quot;,
&quot;last_opened_file_path&quot;: &quot;/home/punix/Pyapps/wire-py&quot;
}
}</component>
<component name="RunManager">
<configuration name="main" type="PythonConfigurationType" factoryName="Python" nameIsGenerated="true">
<module name="wire-py" />
<option name="ENV_FILES" value="" />
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<envs>
<env name="PYTHONUNBUFFERED" value="1" />
</envs>
<option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="IS_MODULE_SDK" value="true" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/main.py" />
<option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" />
<option name="MODULE_MODE" value="false" />
<option name="REDIRECT_INPUT" value="false" />
<option name="INPUT_FILE" value="" />
<method v="2" />
</configuration>
</component>
<component name="SharedIndexes">
<attachedChunks>
<set>
<option value="bundled-python-sdk-8336bb23522e-31b6be0877a2-com.jetbrains.pycharm.community.sharedIndexes.bundled-PC-241.19072.16" />
</set>
</attachedChunks>
</component>
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="940e1630-c825-4d4c-be80-bc11f543c122" name="Changes" comment="" />
<created>1723279982210</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1723279982210</updated>
</task>
<task id="LOCAL-00001" summary="Tunnel Start and Stop Work">
<option name="closed" value="true" />
<created>1723666001005</created>
<option name="number" value="00001" />
<option name="presentableId" value="LOCAL-00001" />
<option name="project" value="LOCAL" />
<updated>1723666001005</updated>
</task>
<task id="LOCAL-00002" summary="Tunnel Start and Stop Work">
<option name="closed" value="true" />
<created>1723666477079</created>
<option name="number" value="00002" />
<option name="presentableId" value="LOCAL-00002" />
<option name="project" value="LOCAL" />
<updated>1723666477079</updated>
</task>
<task id="LOCAL-00003" summary="wg_import_select in wg_func.py extended">
<option name="closed" value="true" />
<created>1723847456806</created>
<option name="number" value="00003" />
<option name="presentableId" value="LOCAL-00003" />
<option name="project" value="LOCAL" />
<updated>1723847456806</updated>
</task>
<option name="localTasksCounter" value="4" />
<servers />
</component>
<component name="Vcs.Log.Tabs.Properties">
<option name="TAB_STATES">
<map>
<entry key="MAIN">
<value>
<State />
</value>
</entry>
</map>
</option>
</component>
<component name="VcsManagerConfiguration">
<option name="ADD_EXTERNAL_FILES_SILENTLY" value="true" />
<MESSAGE value="Tunnel Start and Stop Work" />
<MESSAGE value="wg_import_select in wg_func.py extended" />
<option name="LAST_COMMIT_MESSAGE" value="wg_import_select in wg_func.py extended" />
</component>
</project>

187
Changelog Normal file
View File

@ -0,0 +1,187 @@
Changelog for Wire-Py
My standard System: Linux Mint 22 Cinnamon
## [Unreleased]
- os import in common_tools.py replaced by other methods
- If Wire-Py already runs, prevent further start
- for loops with lists replaced by List Comprehensions
### Added
03-06-2025
-
### Added
13-04-20255
- Installer update for Open Suse Tumbleweed and Leap
- add symbolic link wirepy.py
### Added
09-04-2025
- Installer now with query and remove
- Icons merged
### Added
07-04-2025
- Installers will support other systems again
- Installer is now finished clean with wrong password
- Rename wg_main to wirepy
### Added
03-03-2025
- Fixes a new user files create
### Added
02-03-2025
- Fix ipv6 in Config File on import
- Wirepy run now as user
- settings, AppConfig.KEYS_FILE and Config Files now in ~/.config/wire_py
- For new users, the required files are created and autostart service is started.
- Tunnels are now read from the directory to view them in the list.
To display only own tunnels, and read errors are minimized.
### Added
10-11-2024
- Fix Checkbutton Autostart when first install Wire-Py
- Update Translate Files
### Added
10-11-2024
- Translate file de_De complete
- new FrameWidget for rename Entry and rename Button
### Added
09-11-2024
- Move Tips Method in separate class for Tooltips in another Apps
- Move Version Variable in main script
- Edit Class GiteaUpdate for requests in api_down and download
- Description on Class GiteaUpdate
### Added
08-11-2024
- Preparation for language translation part 1
- separate folder for general icons
- install edit for new dir lx-icons
### Added
08-11-2024
- methods from class MainWindow move to class FrameWidgets for active color_label when theme change
- optimize columnconfigure, rowconfigure in class MainWindow and FrameWidgets
- add new Frame for Widgets on Bottom
- optimize from tkinter * to from tkinter import filedialog, ttk, TclError
### Added
07-11-2024
- remove classes and add methods to class FrameWidgets (removed self errors)
### Added
27-10-2024
- Add Autoconnect settings to settings
### Added
26-10-2024
- Add run_as Bash script and open_gitea.py python script
- Add Tooltip disable/enable
- Rename settings to settings for theme, updates and tooltip enable in one file
### Added
25-10-2024
- Optimize Class and Tooltip
### Added
21-10-2024
- Optimize Class. Move to wg_main Import Start/StopBTN and Tooltip
### Added
19-10-2024
- Add Options, Help, Update Label and Update Menubutton
- Theme now separate Light and Dark
- Add Own Tooltip (Class and def's) Part One
### Added
16-10-2024
- Menu add
- New Modern Dark and Light(default) Theme
### Added
12-10-2024
- Create file for settings (Autoupdate)
- Create file for theme
- Autoupdate in Options
- Dark Theme for Wire-Py
### Added
04-10-2024
- Fix msg_window and remove x , y argument
- Install further adapted and with colored text if user
is not in group sudo or wheel.
- Added to install Opensuse for installation
- Tested on Arch with Mate, Xfce4, Gnome, LXDE Desktop
Open Suse Tumbleweed KDE, Fedora 40 KDE and Debian 12 Mate Desktop
### Added
29-09-2024
- installer optimize for another Systems
- Version number changed to:
1 = 1. Year, 01 = Month of the Year, 0124 = Day and Year of the Year
Example for this version: 1.09.2924
- Comments modified by # description to ''' description '''
and insert empty lines for better readability
### Added
28-09-2024
- Changelog create
- When exporting, the folder is now copied to /tmp and the non .conf
files are deleted before the zip file is created.
- In main.py os import removed. Since os have been replaced by pathlib and shutil.
- Start with version number 1.4.7
- Message window size corrected so text is displayed better
- Version lobster assigned to a variable

View File

@ -1,2 +1,25 @@
# Wire-Py # Wire-Py
Wire-Py is an easy-to-use Gui for nmcli.
Before the first use of Wire-Py, all previous tunnels with "nmcli connection delete example" should be removed.
Wire-Py can easily be imported, exported, started, popped as well as renamed and deleted.
Wire-Py runs on many distros.
Tested on Arch Linux, OpenSuse Tumbleweed,
Fedora, Debian12, Linux Mint 22 Cinnamon
With the desktops:
Xfce4, Cinnamon, Kde, and Mate, LXDE, LXQT
# Screenshots
[![wire-py.png](https://fb.ilunix.de/api/public/dl/0cx7pPYK?inline=true)](https://fb.ilunix.de/share/0cx7pPYK)
# Instruction
[![Import.png](https://fb.ilunix.de/api/public/dl/VpYEn3Gz?inline=true)](https://fb.ilunix.de/share/VpYEn3Gz)
[![Stop.png](https://fb.ilunix.de/api/public/dl/zBnbIiyD?inline=true)](https://fb.ilunix.de/share/zBnbIiyD)
[![export.png](https://fb.ilunix.de/api/public/dl/gMc4-NAj?inline=true)](https://fb.ilunix.de/share/gMc4-NAj)
[![rename.png](https://fb.ilunix.de/api/public/dl/v0y_WiqV?inline=true)](https://fb.ilunix.de/share/v0y_WiqV)

21
TK-Themes/LICENSE Normal file
View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2021 rdbende
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

539
TK-Themes/theme/dark.tcl Normal file
View File

@ -0,0 +1,539 @@
# Copyright (c) 2021 rdbende <rdbende@gmail.com>
# inspired by rdbende modified azure to water by Désire Werner Menrath polunga40@unity-mail.de 2024
package require Tk 8.6
namespace eval ttk::theme::water-dark {
variable version 2.0
package provide ttk::theme::water-dark $version
ttk::style theme create water-dark -parent clam -settings {
proc load_images {imgdir} {
variable I
foreach file [glob -directory $imgdir *.png] {
set img [file tail [file rootname $file]]
set I($img) [image create photo -file $file -format png]
}
}
load_images [file join [file dirname [info script]] dark]
array set colors {
-fg "#ffffff"
-bg "#333333"
-disabledfg "#aaaaaa"
-disabledbg "#737373"
-selectfg "#ffffff"
-selectbg "#007fff"
}
ttk::style layout TButton {
Button.button -children {
Button.padding -children {
Button.label -side left -expand true
}
}
}
ttk::style layout Toolbutton {
Toolbutton.button -children {
Toolbutton.padding -children {
Toolbutton.label -side left -expand true
}
}
}
ttk::style layout TMenubutton {
Menubutton.button -children {
Menubutton.padding -children {
Menubutton.indicator -side right
Menubutton.label -side right -expand true
}
}
}
ttk::style layout TOptionMenu {
OptionMenu.button -children {
OptionMenu.padding -children {
OptionMenu.indicator -side right
OptionMenu.label -side right -expand true
}
}
}
ttk::style layout Accent.TButton {
AccentButton.button -children {
AccentButton.padding -children {
AccentButton.label -side left -expand true
}
}
}
ttk::style layout TCheckbutton {
Checkbutton.button -children {
Checkbutton.padding -children {
Checkbutton.indicator -side left
Checkbutton.label -side right -expand true
}
}
}
ttk::style layout Switch.TCheckbutton {
Switch.button -children {
Switch.padding -children {
Switch.indicator -side left
Switch.label -side right -expand true
}
}
}
ttk::style layout Toggle.TButton {
ToggleButton.button -children {
ToggleButton.padding -children {
ToggleButton.label -side left -expand true
}
}
}
ttk::style layout TRadiobutton {
Radiobutton.button -children {
Radiobutton.padding -children {
Radiobutton.indicator -side left
Radiobutton.label -side right -expand true
}
}
}
ttk::style layout Vertical.TScrollbar {
Vertical.Scrollbar.trough -sticky ns -children {
Vertical.Scrollbar.thumb -expand true
}
}
ttk::style layout Horizontal.TScrollbar {
Horizontal.Scrollbar.trough -sticky ew -children {
Horizontal.Scrollbar.thumb -expand true
}
}
ttk::style layout TCombobox {
Combobox.field -sticky nswe -children {
Combobox.padding -expand true -sticky nswe -children {
Combobox.textarea -sticky nswe
}
}
Combobox.button -side right -sticky ns -children {
Combobox.arrow -sticky nsew
}
}
ttk::style layout TSpinbox {
Spinbox.field -sticky nsew -children {
Spinbox.padding -expand true -sticky nswe -children {
Spinbox.textarea -sticky nswe
}
}
Spinbox.button -side right -sticky ns -children {
null -side right -children {
Spinbox.uparrow -side top
Spinbox.downarrow -side bottom
}
}
}
ttk::style layout Horizontal.TSeparator {
Horizontal.separator -sticky nswe
}
ttk::style layout Vertical.TSeparator {
Vertical.separator -sticky nswe
}
ttk::style layout Horizontal.Tick.TScale {
Horizontal.TickScale.trough -sticky ew -children {
Horizontal.TickScale.slider -sticky w
}
}
ttk::style layout Vertical.Tick.TScale {
Vertical.TickScale.trough -sticky ns -children {
Vertical.TickScale.slider -sticky n
}
}
ttk::style layout Card.TFrame {
Card.field {
Card.padding -expand 1
}
}
ttk::style layout TLabelframe {
Labelframe.border {
Labelframe.padding -expand 1 -children {
Labelframe.label -side right
}
}
}
ttk::style layout TNotebook.Tab {
Notebook.tab -children {
Notebook.padding -side top -children {
Notebook.label -side top -sticky {}
}
}
}
ttk::style layout Treeview.Item {
Treeitem.padding -sticky nswe -children {
Treeitem.indicator -side left -sticky {}
Treeitem.image -side left -sticky {}
Treeitem.text -side left -sticky {}
}
}
# Elements
# Button
ttk::style configure TButton -padding {8 4 8 4} -width -10 -anchor center
ttk::style element create Button.button image \
[list $I(box-basic) \
{selected disabled} $I(box-basic) \
disabled $I(box-basic) \
pressed $I(box-basic) \
selected $I(box-basic) \
active $I(button-hover) \
focus $I(button-hover) \
] -border 4 -sticky ewns
# Toolbutton
ttk::style configure Toolbutton -padding {8 4 8 4} -width -5 -anchor center
ttk::style element create Toolbutton.button image \
[list $I(empty) \
{selected disabled} $I(empty) \
disabled $I(empty) \
pressed $I(rect-basic) \
selected $I(rect-basic) \
active $I(rect-basic) \
] -border 4 -sticky ewns
# Menubutton
ttk::style configure TMenubutton -padding {8 4 4 4}
ttk::style element create Menubutton.button \
image [list $I(rect-basic) \
disabled $I(rect-basic) \
pressed $I(rect-basic) \
active $I(button-hover) \
] -border 4 -sticky ewns
ttk::style element create Menubutton.indicator \
image [list $I(down) \
active $I(down) \
pressed $I(down) \
disabled $I(down) \
] -width 15 -sticky e
# OptionMenu
ttk::style configure TOptionMenu -padding {8 4 4 4}
ttk::style element create OptionMenu.button \
image [list $I(rect-basic) \
disabled $I(rect-basic) \
pressed $I(rect-basic) \
active $I(button-hover) \
] -border 4 -sticky ewns
ttk::style element create OptionMenu.indicator \
image [list $I(down) \
active $I(down) \
pressed $I(down) \
disabled $I(down) \
] -width 15 -sticky e
# AccentButton
ttk::style configure Accent.TButton -padding {8 4 8 4} -width -10 -anchor center
ttk::style element create AccentButton.button image \
[list $I(rect-accent) \
{selected disabled} $I(rect-accent-hover) \
disabled $I(rect-accent-hover) \
pressed $I(rect-accent) \
selected $I(rect-accent) \
active $I(rect-accent-hover) \
focus $I(rect-accent-hover) \
] -border 4 -sticky ewns
# Checkbutton
ttk::style configure TCheckbutton -padding 4
ttk::style element create Checkbutton.indicator image \
[list $I(box-basic) \
{alternate disabled} $I(check-tri-basic) \
{selected disabled} $I(check-basic) \
disabled $I(box-basic) \
{pressed alternate} $I(check-tri-hover) \
{active alternate} $I(check-tri-hover) \
alternate $I(check-tri-accent) \
{pressed selected} $I(check-hover) \
{active selected} $I(check-hover) \
selected $I(check-accent) \
{pressed !selected} $I(rect-hover) \
active $I(box-hover) \
] -width 26 -sticky w
# Switch
ttk::style element create Switch.indicator image \
[list $I(off-basic) \
{selected disabled} $I(on-basic) \
disabled $I(off-basic) \
{pressed selected} $I(on-accent) \
{active selected} $I(on-accent) \
selected $I(on-accent) \
{pressed !selected} $I(off-basic) \
active $I(off-basic) \
] -width 46 -sticky w
# ToggleButton
ttk::style configure Toggle.TButton -padding {8 4 8 4} -width -10 -anchor center
ttk::style element create ToggleButton.button image \
[list $I(rect-basic) \
{selected disabled} $I(rect-accent-hover) \
disabled $I(rect-basic) \
{pressed selected} $I(rect-basic) \
{active selected} $I(rect-accent) \
selected $I(rect-accent) \
{pressed !selected} $I(rect-accent) \
active $I(rect-basic) \
] -border 4 -sticky ewns
# Radiobutton
ttk::style configure TRadiobutton -padding 4
ttk::style element create Radiobutton.indicator image \
[list $I(outline-basic) \
{alternate disabled} $I(radio-tri-basic) \
{selected disabled} $I(radio-basic) \
disabled $I(outline-basic) \
{pressed alternate} $I(radio-tri-hover) \
{active alternate} $I(radio-tri-hover) \
alternate $I(radio-tri-accent) \
{pressed selected} $I(radio-hover) \
{active selected} $I(radio-hover) \
selected $I(radio-accent) \
{pressed !selected} $I(circle-hover) \
active $I(outline-hover) \
] -width 26 -sticky w
# Scrollbar
ttk::style element create Horizontal.Scrollbar.trough image $I(hor-basic) \
-sticky ew
ttk::style element create Horizontal.Scrollbar.thumb \
image [list $I(hor-accent) \
disabled $I(hor-basic) \
pressed $I(hor-hover) \
active $I(hor-hover) \
] -sticky ew
ttk::style element create Vertical.Scrollbar.trough image $I(vert-basic) \
-sticky ns
ttk::style element create Vertical.Scrollbar.thumb \
image [list $I(vert-accent) \
disabled $I(vert-basic) \
pressed $I(vert-hover) \
active $I(vert-hover) \
] -sticky ns
# Scale
ttk::style element create Horizontal.Scale.trough image $I(scale-hor) \
-border 5 -padding 0
ttk::style element create Horizontal.Scale.slider \
image [list $I(circle-accent) \
disabled $I(circle-basic) \
pressed $I(circle-hover) \
active $I(circle-hover) \
] -sticky {}
ttk::style element create Vertical.Scale.trough image $I(scale-vert) \
-border 5 -padding 0
ttk::style element create Vertical.Scale.slider \
image [list $I(circle-accent) \
disabled $I(circle-basic) \
pressed $I(circle-hover) \
active $I(circle-hover) \
] -sticky {}
# Tickscale
ttk::style element create Horizontal.TickScale.trough image $I(scale-hor) \
-border 5 -padding 0
ttk::style element create Horizontal.TickScale.slider \
image [list $I(tick-hor-accent) \
disabled $I(tick-hor-basic) \
pressed $I(tick-hor-hover) \
active $I(tick-hor-hover) \
] -sticky {}
ttk::style element create Vertical.TickScale.trough image $I(scale-vert) \
-border 5 -padding 0
ttk::style element create Vertical.TickScale.slider \
image [list $I(tick-vert-accent) \
disabled $I(tick-vert-basic) \
pressed $I(tick-vert-hover) \
active $I(tick-vert-hover) \
] -sticky {}
# Progressbar
ttk::style element create Horizontal.Progressbar.trough image $I(hor-basic) \
-sticky ew
ttk::style element create Horizontal.Progressbar.pbar image $I(hor-accent) \
-sticky ew
ttk::style element create Vertical.Progressbar.trough image $I(vert-basic) \
-sticky ns
ttk::style element create Vertical.Progressbar.pbar image $I(vert-accent) \
-sticky ns
# Entry
ttk::style element create Entry.field \
image [list $I(box-basic) \
{focus hover} $I(box-accent) \
invalid $I(box-invalid) \
disabled $I(box-basic) \
focus $I(box-accent) \
hover $I(box-hover) \
] -border 5 -padding {8} -sticky news
# Combobox
ttk::style map TCombobox -selectbackground [list \
{!focus} $colors(-selectbg) \
{readonly hover} $colors(-selectbg) \
{readonly focus} $colors(-selectbg) \
]
ttk::style map TCombobox -selectforeground [list \
{!focus} $colors(-selectfg) \
{readonly hover} $colors(-selectfg) \
{readonly focus} $colors(-selectfg) \
]
ttk::style element create Combobox.field \
image [list $I(box-basic) \
{readonly disabled} $I(rect-basic) \
{readonly pressed} $I(rect-basic) \
{readonly focus hover} $I(button-hover) \
{readonly focus} $I(button-hover) \
{readonly hover} $I(button-hover) \
{focus hover} $I(box-accent) \
readonly $I(rect-basic) \
invalid $I(box-invalid) \
disabled $I(box-basic) \
focus $I(box-accent) \
hover $I(box-hover) \
] -border 5 -padding {8}
ttk::style element create Combobox.button \
image [list $I(combo-button-basic) \
{!readonly focus} $I(combo-button-focus) \
{readonly focus} $I(combo-button-hover) \
{readonly hover} $I(combo-button-hover)
] -border 5 -padding {2 6 6 6}
ttk::style element create Combobox.arrow image $I(down) \
-width 15 -sticky e
# Spinbox
ttk::style element create Spinbox.field \
image [list $I(box-basic) \
invalid $I(box-invalid) \
disabled $I(box-basic) \
focus $I(box-accent) \
hover $I(box-hover) \
] -border 5 -padding {8} -sticky news
ttk::style element create Spinbox.uparrow \
image [list $I(up) \
disabled $I(up) \
pressed $I(up-accent) \
active $I(up-accent) \
] -border 4 -width 15 -sticky e
ttk::style element create Spinbox.downarrow \
image [list $I(down) \
disabled $I(down) \
pressed $I(down-accent) \
active $I(down-accent) \
] -border 4 -width 15 -sticky e
ttk::style element create Spinbox.button \
image [list $I(combo-button-basic) \
{!readonly focus} $I(combo-button-focus) \
{readonly focus} $I(combo-button-hover) \
{readonly hover} $I(combo-button-hover)
] -border 5 -padding {2 6 6 6}
# Sizegrip
ttk::style element create Sizegrip.sizegrip image $I(size) \
-sticky ewns
# Separator
ttk::style element create Horizontal.separator image $I(separator)
ttk::style element create Vertical.separator image $I(separator)
# Card
ttk::style element create Card.field image $I(card) \
-border 10 -padding 4 -sticky news
# Labelframe
ttk::style element create Labelframe.border image $I(card) \
-border 5 -padding 4 -sticky news
# Notebook
ttk::style element create Notebook.client \
image $I(notebook) -border 5
ttk::style element create Notebook.tab \
image [list $I(tab-disabled) \
selected $I(tab-basic) \
active $I(tab-hover) \
] -border 5 -padding {14 4}
# Treeview
ttk::style element create Treeview.field image $I(card) \
-border 5
ttk::style element create Treeheading.cell \
image [list $I(tree-basic) \
pressed $I(tree-pressed)
] -border 5 -padding 4 -sticky ewns
ttk::style element create Treeitem.indicator \
image [list $I(right) \
user2 $I(empty) \
user1 $I(down) \
] -width 26 -sticky {}
ttk::style configure Treeview -background $colors(-bg)
ttk::style configure Treeview.Item -padding {2 0 0 0}
ttk::style map Treeview \
-background [list selected $colors(-selectbg)] \
-foreground [list selected $colors(-selectfg)]
# Panedwindow
# Insane hack to remove clam's ugly sash
ttk::style configure Sash -gripcount 0
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 330 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 357 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 405 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 346 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 457 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 423 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 453 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 326 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 437 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 470 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 297 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 410 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 677 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 668 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 587 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 644 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 561 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 625 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 505 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 466 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 289 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 286 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 297 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 477 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 260 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 267 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 280 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 257 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 277 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 B

BIN
TK-Themes/theme/dark/up.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 271 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 B

539
TK-Themes/theme/light.tcl Normal file
View File

@ -0,0 +1,539 @@
# Copyright (c) 2021 rdbende <rdbende@gmail.com>
# inspired by rdbende modified azure to water by Désire Werner Menrath polunga40@unity-mail.de 2024
package require Tk 8.6
namespace eval ttk::theme::water-light {
variable version 2.0
package provide ttk::theme::water-light $version
ttk::style theme create water-light -parent clam -settings {
proc load_images {imgdir} {
variable I
foreach file [glob -directory $imgdir *.png] {
set img [file tail [file rootname $file]]
set I($img) [image create photo -file $file -format png]
}
}
load_images [file join [file dirname [info script]] light]
array set colors {
-fg "#000000"
-bg "#ffffff"
-disabledfg "#737373"
-disabledbg "#ffffff"
-selectfg "#ffffff"
-selectbg "#007fff"
}
ttk::style layout TButton {
Button.button -children {
Button.padding -children {
Button.label -side left -expand true
}
}
}
ttk::style layout Toolbutton {
Toolbutton.button -children {
Toolbutton.padding -children {
Toolbutton.label -side left -expand true
}
}
}
ttk::style layout TMenubutton {
Menubutton.button -children {
Menubutton.padding -children {
Menubutton.indicator -side right
Menubutton.label -side right -expand true
}
}
}
ttk::style layout TOptionMenu {
OptionMenu.button -children {
OptionMenu.padding -children {
OptionMenu.indicator -side right
OptionMenu.label -side right -expand true
}
}
}
ttk::style layout Accent.TButton {
AccentButton.button -children {
AccentButton.padding -children {
AccentButton.label -side left -expand true
}
}
}
ttk::style layout TCheckbutton {
Checkbutton.button -children {
Checkbutton.padding -children {
Checkbutton.indicator -side left
Checkbutton.label -side right -expand true
}
}
}
ttk::style layout Switch.TCheckbutton {
Switch.button -children {
Switch.padding -children {
Switch.indicator -side left
Switch.label -side right -expand true
}
}
}
ttk::style layout Toggle.TButton {
ToggleButton.button -children {
ToggleButton.padding -children {
ToggleButton.label -side left -expand true
}
}
}
ttk::style layout TRadiobutton {
Radiobutton.button -children {
Radiobutton.padding -children {
Radiobutton.indicator -side left
Radiobutton.label -side right -expand true
}
}
}
ttk::style layout Vertical.TScrollbar {
Vertical.Scrollbar.trough -sticky ns -children {
Vertical.Scrollbar.thumb -expand true
}
}
ttk::style layout Horizontal.TScrollbar {
Horizontal.Scrollbar.trough -sticky ew -children {
Horizontal.Scrollbar.thumb -expand true
}
}
ttk::style layout TCombobox {
Combobox.field -sticky nswe -children {
Combobox.padding -expand true -sticky nswe -children {
Combobox.textarea -sticky nswe
}
}
Combobox.button -side right -sticky ns -children {
Combobox.arrow -sticky nsew
}
}
ttk::style layout TSpinbox {
Spinbox.field -sticky nsew -children {
Spinbox.padding -expand true -sticky nswe -children {
Spinbox.textarea -sticky nswe
}
}
Spinbox.button -side right -sticky ns -children {
null -side right -children {
Spinbox.uparrow -side top
Spinbox.downarrow -side bottom
}
}
}
ttk::style layout Horizontal.TSeparator {
Horizontal.separator -sticky nswe
}
ttk::style layout Vertical.TSeparator {
Vertical.separator -sticky nswe
}
ttk::style layout Horizontal.Tick.TScale {
Horizontal.TickScale.trough -sticky ew -children {
Horizontal.TickScale.slider -sticky w
}
}
ttk::style layout Vertical.Tick.TScale {
Vertical.TickScale.trough -sticky ns -children {
Vertical.TickScale.slider -sticky n
}
}
ttk::style layout Card.TFrame {
Card.field {
Card.padding -expand 1
}
}
ttk::style layout TLabelframe {
Labelframe.border {
Labelframe.padding -expand 1 -children {
Labelframe.label -side right
}
}
}
ttk::style layout TNotebook.Tab {
Notebook.tab -children {
Notebook.padding -side top -children {
Notebook.label -side top -sticky {}
}
}
}
ttk::style layout Treeview.Item {
Treeitem.padding -sticky nswe -children {
Treeitem.indicator -side left -sticky {}
Treeitem.image -side left -sticky {}
Treeitem.text -side left -sticky {}
}
}
# Elements
# Button
ttk::style configure TButton -padding {8 4 8 4} -width -10 -anchor center
ttk::style element create Button.button image \
[list $I(box-basic) \
{selected disabled} $I(box-basic) \
disabled $I(box-basic) \
selected $I(box-basic) \
pressed $I(box-basic) \
active $I(button-hover) \
focus $I(button-hover) \
] -border 4 -sticky ewns
# Toolbutton
ttk::style configure Toolbutton -padding {8 4 8 4} -width -5 -anchor center
ttk::style element create Toolbutton.button image \
[list $I(empty) \
{selected disabled} $I(empty) \
disabled $I(empty) \
selected $I(rect-basic) \
pressed $I(rect-basic) \
active $I(rect-basic) \
] -border 4 -sticky ewns
# Menubutton
ttk::style configure TMenubutton -padding {8 4 4 4}
ttk::style element create Menubutton.button \
image [list $I(rect-basic) \
disabled $I(rect-basic) \
pressed $I(rect-basic) \
active $I(button-hover) \
] -border 4 -sticky ewns
ttk::style element create Menubutton.indicator \
image [list $I(down) \
active $I(down) \
pressed $I(down) \
disabled $I(down) \
] -width 15 -sticky e
# OptionMenu
ttk::style configure TOptionMenu -padding {8 4 4 4}
ttk::style element create OptionMenu.button \
image [list $I(rect-basic) \
disabled $I(rect-basic) \
pressed $I(rect-basic) \
active $I(button-hover) \
] -border 4 -sticky ewns
ttk::style element create OptionMenu.indicator \
image [list $I(down) \
active $I(down) \
pressed $I(down) \
disabled $I(down) \
] -width 15 -sticky e
# AccentButton
ttk::style configure Accent.TButton -padding {8 4 8 4} -width -10 -anchor center
ttk::style element create AccentButton.button image \
[list $I(rect-accent) \
{selected disabled} $I(rect-accent-hover) \
disabled $I(rect-accent-hover) \
selected $I(rect-accent) \
pressed $I(rect-accent) \
active $I(rect-accent-hover) \
focus $I(rect-accent-hover) \
] -border 4 -sticky ewns
# Checkbutton
ttk::style configure TCheckbutton -padding 4
ttk::style element create Checkbutton.indicator image \
[list $I(box-basic) \
{alternate disabled} $I(check-tri-basic) \
{selected disabled} $I(check-basic) \
disabled $I(box-basic) \
{pressed alternate} $I(check-tri-hover) \
{active alternate} $I(check-tri-hover) \
alternate $I(check-tri-accent) \
{pressed selected} $I(check-hover) \
{active selected} $I(check-hover) \
selected $I(check-accent) \
{pressed !selected} $I(rect-hover) \
active $I(box-hover) \
] -width 26 -sticky w
# Switch
ttk::style element create Switch.indicator image \
[list $I(off-basic) \
{selected disabled} $I(on-basic) \
disabled $I(off-basic) \
{pressed selected} $I(on-hover) \
{active selected} $I(on-hover) \
selected $I(on-accent) \
{pressed !selected} $I(off-hover) \
active $I(off-hover) \
] -width 46 -sticky w
# ToggleButton
ttk::style configure Toggle.TButton -padding {8 4 8 4} -width -10 -anchor center
ttk::style element create ToggleButton.button image \
[list $I(rect-basic) \
{selected disabled} $I(rect-accent-hover) \
disabled $I(rect-basic) \
{pressed selected} $I(rect-basic) \
{active selected} $I(rect-accent) \
selected $I(rect-accent) \
{pressed !selected} $I(rect-accent) \
active $I(rect-basic) \
] -border 4 -sticky ewns
# Radiobutton
ttk::style configure TRadiobutton -padding 4
ttk::style element create Radiobutton.indicator image \
[list $I(outline-basic) \
{alternate disabled} $I(radio-tri-basic) \
{selected disabled} $I(radio-basic) \
disabled $I(outline-basic) \
{pressed alternate} $I(radio-tri-hover) \
{active alternate} $I(radio-tri-hover) \
alternate $I(radio-tri-accent) \
{pressed selected} $I(radio-hover) \
{active selected} $I(radio-hover) \
selected $I(radio-accent) \
{pressed !selected} $I(circle-hover) \
active $I(outline-hover) \
] -width 26 -sticky w
# Scrollbar
ttk::style element create Horizontal.Scrollbar.trough image $I(hor-basic) \
-sticky ew
ttk::style element create Horizontal.Scrollbar.thumb \
image [list $I(hor-accent) \
disabled $I(hor-basic) \
pressed $I(hor-hover) \
active $I(hor-hover) \
] -sticky ew
ttk::style element create Vertical.Scrollbar.trough image $I(vert-basic) \
-sticky ns
ttk::style element create Vertical.Scrollbar.thumb \
image [list $I(vert-accent) \
disabled $I(vert-basic) \
pressed $I(vert-hover) \
active $I(vert-hover) \
] -sticky ns
# Scale
ttk::style element create Horizontal.Scale.trough image $I(scale-hor) \
-border 5 -padding 0
ttk::style element create Horizontal.Scale.slider \
image [list $I(circle-accent) \
disabled $I(circle-basic) \
pressed $I(circle-hover) \
active $I(circle-hover) \
] -sticky {}
ttk::style element create Vertical.Scale.trough image $I(scale-vert) \
-border 5 -padding 0
ttk::style element create Vertical.Scale.slider \
image [list $I(circle-accent) \
disabled $I(circle-basic) \
pressed $I(circle-hover) \
active $I(circle-hover) \
] -sticky {}
# Tickscale
ttk::style element create Horizontal.TickScale.trough image $I(scale-hor) \
-border 5 -padding 0
ttk::style element create Horizontal.TickScale.slider \
image [list $I(tick-hor-accent) \
disabled $I(tick-hor-basic) \
pressed $I(tick-hor-hover) \
active $I(tick-hor-hover) \
] -sticky {}
ttk::style element create Vertical.TickScale.trough image $I(scale-vert) \
-border 5 -padding 0
ttk::style element create Vertical.TickScale.slider \
image [list $I(tick-vert-accent) \
disabled $I(tick-vert-basic) \
pressed $I(tick-vert-hover) \
active $I(tick-vert-hover) \
] -sticky {}
# Progressbar
ttk::style element create Horizontal.Progressbar.trough image $I(hor-basic) \
-sticky ew
ttk::style element create Horizontal.Progressbar.pbar image $I(hor-accent) \
-sticky ew
ttk::style element create Vertical.Progressbar.trough image $I(vert-basic) \
-sticky ns
ttk::style element create Vertical.Progressbar.pbar image $I(vert-accent) \
-sticky ns
# Entry
ttk::style element create Entry.field \
image [list $I(box-basic) \
{focus hover} $I(box-accent) \
invalid $I(box-invalid) \
disabled $I(box-basic) \
focus $I(box-accent) \
hover $I(box-hover) \
] -border 5 -padding {8} -sticky news
# Combobox
ttk::style map TCombobox -selectbackground [list \
{!focus} $colors(-selectbg) \
{readonly hover} $colors(-selectbg) \
{readonly focus} $colors(-selectbg) \
]
ttk::style map TCombobox -selectforeground [list \
{!focus} $colors(-selectfg) \
{readonly hover} $colors(-selectfg) \
{readonly focus} $colors(-selectfg) \
]
ttk::style element create Combobox.field \
image [list $I(box-basic) \
{readonly disabled} $I(rect-basic) \
{readonly pressed} $I(rect-basic) \
{readonly focus hover} $I(button-hover) \
{readonly focus} $I(button-hover) \
{readonly hover} $I(button-hover) \
{focus hover} $I(box-accent) \
readonly $I(rect-basic) \
invalid $I(box-invalid) \
disabled $I(box-basic) \
focus $I(box-accent) \
hover $I(box-hover) \
] -border 5 -padding {8}
ttk::style element create Combobox.button \
image [list $I(combo-button-basic) \
{!readonly focus} $I(combo-button-focus) \
{readonly focus} $I(combo-button-hover) \
{readonly hover} $I(combo-button-hover)
] -border 5 -padding {2 6 6 6}
ttk::style element create Combobox.arrow image $I(down) \
-width 15 -sticky e
# Spinbox
ttk::style element create Spinbox.field \
image [list $I(box-basic) \
invalid $I(box-invalid) \
disabled $I(box-basic) \
focus $I(box-accent) \
hover $I(box-hover) \
] -border 5 -padding {8} -sticky news
ttk::style element create Spinbox.uparrow \
image [list $I(up) \
disabled $I(up) \
pressed $I(up-accent) \
active $I(up-accent) \
] -border 4 -width 15 -sticky e
ttk::style element create Spinbox.downarrow \
image [list $I(down) \
disabled $I(down) \
pressed $I(down-accent) \
active $I(down-accent) \
] -border 4 -width 15 -sticky e
ttk::style element create Spinbox.button \
image [list $I(combo-button-basic) \
{!readonly focus} $I(combo-button-focus) \
{readonly focus} $I(combo-button-hover) \
{readonly hover} $I(combo-button-hover)
] -border 5 -padding {2 6 6 6}
# Sizegrip
ttk::style element create Sizegrip.sizegrip image $I(size) \
-sticky ewns
# Separator
ttk::style element create Horizontal.separator image $I(separator)
ttk::style element create Vertical.separator image $I(separator)
# Card
ttk::style element create Card.field image $I(card) \
-border 10 -padding 4 -sticky news
# Labelframe
ttk::style element create Labelframe.border image $I(card) \
-border 5 -padding 4 -sticky news
# Notebook
ttk::style element create Notebook.client \
image $I(notebook) -border 5
ttk::style element create Notebook.tab \
image [list $I(tab-disabled) \
selected $I(tab-basic) \
active $I(tab-hover) \
] -border 5 -padding {14 4}
# Treeview
ttk::style element create Treeview.field image $I(card) \
-border 5
ttk::style element create Treeheading.cell \
image [list $I(tree-basic) \
pressed $I(tree-pressed)
] -border 5 -padding 4 -sticky ewns
ttk::style element create Treeitem.indicator \
image [list $I(right) \
user2 $I(empty) \
user1 $I(down) \
] -width 26 -sticky {}
ttk::style configure Treeview -background $colors(-bg)
ttk::style configure Treeview.Item -padding {2 0 0 0}
ttk::style map Treeview \
-background [list selected #ccc] \
-foreground [list selected $colors(-fg)]
# Panedwindow
# Insane hack to remove clam's ugly sash
ttk::style configure Sash -gripcount 0
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 319 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 329 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 285 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 326 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 444 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 390 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 451 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 281 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 319 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 429 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 247 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 299 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 271 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 157 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 389 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 547 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 663 B

Some files were not shown because too many files have changed in this diff Show More