From 1d22dcab43688667bb2c2414788fe359b04f1b3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20V=C3=ADrseda?= Date: Wed, 7 Aug 2024 16:22:21 +0200 Subject: [PATCH 1/8] fix(IconManager): get gicon by using Gio.GFileInfo query --- MiAZ/frontend/desktop/services/icm.py | 32 ++++++++++++++++---------- MiAZ/frontend/desktop/widgets/views.py | 4 +--- 2 files changed, 21 insertions(+), 15 deletions(-) diff --git a/MiAZ/frontend/desktop/services/icm.py b/MiAZ/frontend/desktop/services/icm.py index 95294511..0303496b 100644 --- a/MiAZ/frontend/desktop/services/icm.py +++ b/MiAZ/frontend/desktop/services/icm.py @@ -4,10 +4,14 @@ # License: GPL v3 # Description: Icon manager +import os + from gi.repository import Gtk from gi.repository import Gio from gi.repository import GObject +from MiAZ.backend.log import MiAZLog + class MiAZIconManager(GObject.GObject): """ @@ -26,6 +30,8 @@ def __init__(self, app): :type app: MiAZApp """ super().__init__() + self.app = app + self.log = MiAZLog('MiAZ.IconManager') def get_image_by_name(self, name: str, size: int = 24) -> Gtk.Image: """ @@ -42,18 +48,20 @@ def get_image_by_name(self, name: str, size: int = 24) -> Gtk.Image: image.set_pixel_size(size) return image - def get_mimetype_icon(self, mimetype: str) -> Gio.Icon: + def get_mimetype_icon(self, filename: str) -> Gio.Icon: """ - Get icon for a given mimetype. + Get mimetype icon for a given file. - :param mimetype: file mimetype - :type mimetype: str - :return: an icon - :rtype: Gio.Icon + :param filename: file name + :type filename: str + return: an icon + rtype: Gio.ThemedIcon (GIcon) """ - try: - gicon = self.gicondict[mimetype] - except KeyError: - gicon = Gio.content_type_get_icon(mimetype) - self.gicondict[mimetype] = gicon - return gicon + repository = self.app.get_service('repo') + basedir = repository.docs + filepath = os.path.join(basedir, filename) + if os.path.exists(filepath): + gfile = Gio.File.new_for_path(filepath) + info = gfile.query_info(Gio.FILE_ATTRIBUTE_STANDARD_ICON, Gio.FileQueryInfoFlags.NONE, None) + gicon = info.get_icon() + return gicon \ No newline at end of file diff --git a/MiAZ/frontend/desktop/widgets/views.py b/MiAZ/frontend/desktop/widgets/views.py index 186b83b7..9fbb8189 100644 --- a/MiAZ/frontend/desktop/widgets/views.py +++ b/MiAZ/frontend/desktop/widgets/views.py @@ -154,12 +154,10 @@ def _on_factory_setup_icon_type(self, factory, list_item): def _on_factory_bind_icon_type(self, factory, list_item): """To be subclassed""" - utils = self.app.get_service('util') box = list_item.get_child() icon = box.get_first_child() item = list_item.get_item() - mimetype = utils.get_mimetype(item.id) - gicon = self.srvicm.get_mimetype_icon(mimetype) + gicon = self.srvicm.get_mimetype_icon(item.id) icon.set_from_gicon(gicon) icon.set_pixel_size(36) From 9e750fd2c87f3e886e4fdaf015d88949429e80f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20V=C3=ADrseda?= Date: Wed, 7 Aug 2024 16:24:13 +0200 Subject: [PATCH 2/8] fix(Util): disable unnecessary debug logs. (Use TRACE?) --- MiAZ/backend/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MiAZ/backend/util.py b/MiAZ/backend/util.py index 5965e169..9acc141b 100644 --- a/MiAZ/backend/util.py +++ b/MiAZ/backend/util.py @@ -271,7 +271,7 @@ def filename_date_human_simple(self, value: str = '') -> str: return date_dsc def filename_display(self, filepath): - self.log.debug(f"OS Platform: {sys.platform}") + # ~ self.log.debug(f"OS Platform: {sys.platform}") if sys.platform in ['linux', 'linux2']: os.system(f"xdg-open \"{filepath}\"") elif sys.platform in ['win32', 'cygwin', 'msys']: @@ -315,7 +315,7 @@ def string_to_datetime(self, adate: str) -> datetime: def zip(self, filename: str, directory: str): """ Zip directory into a file """ - self.log.debug(f"Target: {filename}") + # ~ self.log.debug(f"Target: {filename}") sourcename = os.path.basename(filename) dot = sourcename.find('.') if dot == -1: From 8ace2c76be2a2bbb1431c2d5d3313eb33183637e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20V=C3=ADrseda?= Date: Tue, 20 Aug 2024 20:15:33 +0200 Subject: [PATCH 3/8] change message log levels --- MiAZ/backend/config.py | 9 ++++----- MiAZ/backend/pluginsystem.py | 5 ++--- MiAZ/backend/projects.py | 2 +- MiAZ/backend/repository.py | 4 ++-- MiAZ/backend/watcher.py | 4 ++-- MiAZ/frontend/desktop/app.py | 14 +++++++------- MiAZ/frontend/desktop/services/actions.py | 2 +- MiAZ/frontend/desktop/widgets/workspace.py | 10 +++++----- 8 files changed, 24 insertions(+), 26 deletions(-) diff --git a/MiAZ/backend/config.py b/MiAZ/backend/config.py index 150d7d96..c27f6067 100644 --- a/MiAZ/backend/config.py +++ b/MiAZ/backend/config.py @@ -85,13 +85,13 @@ def load(self, filepath: str) -> dict: config_changed = True if config_changed: - self.log.debug(f"Loading {self.config_for} items from disk ({filepath})") + self.log.trace(f"Loading {self.config_for} items from disk ({filepath})") try: items = util.json_load(filepath) self.cache[filepath] = {} self.cache[filepath]['changed'] = False self.cache[filepath]['items'] = items - # ~ self.log.debug(f"In-memory config data updated for '{filepath}'") + self.log.trace(f"In-memory config data updated for '{filepath}'") except Exception: items = [] return items @@ -101,11 +101,11 @@ def load(self, filepath: str) -> dict: return self.cache[filepath]['items'] def load_available(self) -> dict: - # ~ self.log.debug(f"{self.config_for} available: {self.available}") + self.log.trace(f"{self.config_for} available: {self.available}") return self.load(self.available) def load_used(self) -> dict: - # ~ self.log.debug(f"{self.config_for} used: {self.used}") + self.log.trace(f"{self.config_for} used: {self.used}") return self.load(self.used) def save(self, filepath: str = '', items: dict = None) -> bool: @@ -322,7 +322,6 @@ def __init__(self, app, dir_conf): must_copy=False, foreign=True ) - self.log.debug("Config for countries created") class MiAZConfigGroups(MiAZConfig): diff --git a/MiAZ/backend/pluginsystem.py b/MiAZ/backend/pluginsystem.py index b2d674c8..ddf785c8 100644 --- a/MiAZ/backend/pluginsystem.py +++ b/MiAZ/backend/pluginsystem.py @@ -50,7 +50,7 @@ def __init__(self, app): self.log = MiAZLog('MiAZ.PluginManager') self.app = app self.util = self.app.get_service('util') - self.log.debug("Initializing Plugin Manager") + self.log.trace("Initializing Plugin Manager") self.plugin_info_list = [] self.engine = Peas.Engine.get_default() @@ -140,8 +140,7 @@ def load_plugin(self, plugin: Peas.PluginInfo) -> bool: self.engine.load_plugin(plugin) if plugin.is_loaded(): - - self.log.debug(f"Plugin {pname} v{pvers} ({ptype}) loaded") + self.log.info(f"Plugin {pname} v{pvers} ({ptype}) loaded") return True else: self.log.error(f"Plugin {pname} v{pvers} ({ptype}) couldn't be loaded") diff --git a/MiAZ/backend/projects.py b/MiAZ/backend/projects.py index c5e99166..21195f09 100644 --- a/MiAZ/backend/projects.py +++ b/MiAZ/backend/projects.py @@ -52,7 +52,7 @@ def check(self): to_delete.append((doc, project)) for doc, project in to_delete: self.remove(project, doc) - self.log.debug("Projects consistency checked") + self.log.trace("Projects consistency checked") def add(self, project: str, doc: str): """ diff --git a/MiAZ/backend/repository.py b/MiAZ/backend/repository.py index 07788e57..b6aadc8d 100644 --- a/MiAZ/backend/repository.py +++ b/MiAZ/backend/repository.py @@ -53,7 +53,7 @@ def validate(self, path: str) -> bool: try: conf_dir = os.path.join(path, '.conf') conf_file = os.path.join(conf_dir, 'repo.json') - self.log.debug(f"Validating repository '{conf_file}'") + self.log.trace(f"Validating repository '{conf_file}'") if os.path.exists(conf_dir): if os.path.exists(conf_file): with open(conf_file, 'r') as fin: @@ -62,7 +62,7 @@ def validate(self, path: str) -> bool: valid = True except Exception as error: self.log.error(error) - self.log.debug(f"Repository {conf_file} valid? {valid}") + self.log.trace(f"Repository {conf_file} valid? {valid}") except Exception as warning: self.log.warning(warning) return valid diff --git a/MiAZ/backend/watcher.py b/MiAZ/backend/watcher.py index da877164..6b7cdaff 100644 --- a/MiAZ/backend/watcher.py +++ b/MiAZ/backend/watcher.py @@ -34,7 +34,7 @@ def __init__(self, dirpath: str = None): GObject.signal_new('repository-updated', MiAZWatcher, GObject.SignalFlags.RUN_LAST, None, ()) self.set_path(dirpath) GLib.timeout_add_seconds(1, self.watch) - self.log.debug("Watcher initialized") + self.log.trace("Watcher initialized") # PLAIN def __files_with_timestamp(self, rootdir): @@ -65,7 +65,7 @@ def __files_with_timestamp(self, rootdir): def set_path(self, dirpath: str): if dirpath is not None: self.dirpath = dirpath - self.log.debug(f"Watcher monitoring '{self.dirpath}'") + self.log.info(f"Watcher monitoring '{self.dirpath}'") def set_active(self, active: bool = True) -> None: self.active = active diff --git a/MiAZ/frontend/desktop/app.py b/MiAZ/frontend/desktop/app.py index 83e8f797..e5046266 100644 --- a/MiAZ/frontend/desktop/app.py +++ b/MiAZ/frontend/desktop/app.py @@ -122,7 +122,7 @@ def _setup_ui(self): theme = self.set_service('theme', Gtk.IconTheme.get_for_display(window.get_display())) theme.add_search_path(ENV['GPATH']['ICONS']) theme.add_search_path(ENV['GPATH']['FLAGS']) - self.log.debug(f"MiAZ custom icons in: {ENV['GPATH']['ICONS']}") + self.log.trace(f"MiAZ custom icons in: {ENV['GPATH']['ICONS']}") # Setup main window contents mainbox = self.add_widget('window-mainbox', MiAZMainWindow(self)) @@ -133,7 +133,7 @@ def _setup_ui(self): self.set_menubar(menubar) def _on_window_close_request(self, *args): - self.log.debug("Close application requested") + self.log.trace("Close application requested") actions = self.get_service('actions') actions.exit_app() @@ -162,7 +162,7 @@ def _load_plugins(self): if ptype == MiAZPluginType.SYSTEM: np += 1 self.plugins_loaded = True - self.log.debug(f"System plugins loaded: {ap}/{np}") + self.log.info(f"System plugins loaded: {ap}/{np}") # Load User Plugins self.log.debug("Loading user plugins for this repository...") @@ -183,7 +183,7 @@ def _load_plugins(self): self.log.error(error) if ptype == MiAZPluginType.USER: np += 1 - self.log.debug(f"User plugins loaded for this repoitory: {ap}/{np}") + self.log.info(f"User plugins loaded for this repository: {ap}/{np}") def get_config(self, name: str): try: @@ -194,7 +194,7 @@ def get_config(self, name: str): def switch_start(self): """Switch from one repository to another.""" - self.log.debug("Repository switch requested") + self.log.trace("Repository switch requested") actions = self.get_service('actions') repository = self.get_service('repo') try: @@ -208,10 +208,10 @@ def switch_start(self): repo_loaded = False repo_id = appconf.get('current') - self.log.debug(f"Repository '{repo_id}' loaded? {repo_loaded}") + self.log.trace(f"Repository '{repo_id}' loaded? {repo_loaded}") if repo_loaded: - self.log.debug(f"Repo Working directory: '{repository.docs}") + self.log.info(f"Repo Working directory: '{repository.docs}'") repo_settings = self.get_widget('settings-repo') if repo_settings is None: repo_settings = self.add_widget('settings-repo', MiAZRepoSettings(self)) diff --git a/MiAZ/frontend/desktop/services/actions.py b/MiAZ/frontend/desktop/services/actions.py index 1c16a248..a28e243c 100644 --- a/MiAZ/frontend/desktop/services/actions.py +++ b/MiAZ/frontend/desktop/services/actions.py @@ -284,7 +284,7 @@ def toggle_workspace_filters(self, *args): btnShowFilters.set_active(not active) def exit_app(self, *args): - self.log.debug('Closing MiAZ') + self.log.trace('Closing MiAZ') self.app.emit("exit-application") self.app.quit() diff --git a/MiAZ/frontend/desktop/widgets/workspace.py b/MiAZ/frontend/desktop/widgets/workspace.py index b675cd4c..6711fe4e 100644 --- a/MiAZ/frontend/desktop/widgets/workspace.py +++ b/MiAZ/frontend/desktop/widgets/workspace.py @@ -56,7 +56,7 @@ class MiAZWorkspace(Gtk.Box): def __init__(self, app): super().__init__(orientation=Gtk.Orientation.HORIZONTAL) self.log = MiAZLog('MiAZ.Workspace') - self.log.debug("Initializing widget Workspace!!") + self.log.trace("Initializing widget Workspace!!") self.app = app self.config = self.app.get_config_dict() self._setup_workspace() @@ -78,7 +78,7 @@ def initialize_caches(self): self.fcache = os.path.join(repository.conf, 'cache.json') try: self.cache = util.json_load(self.fcache) - self.log.debug(f"Loading cache from '{self.fcache}") + self.log.trace(f"Loading cache from '{self.fcache}") except Exception: util.json_save(self.fcache, {}) @@ -183,7 +183,7 @@ def _setup_logic(self): self.workspace_loaded = True def _on_finish_configuration(self, *args): - self.log.debug("Finish loading workspace") + self.log.trace("Finish loading workspace") window = self.app.get_widget('window') window.present() srvutl = self.app.get_service('util') @@ -494,7 +494,7 @@ def clear_filters(self, *args): dropdowns = self.app.get_widget('ws-dropdowns') for ddId in dropdowns: dropdowns[ddId].set_selected(0) - self.log.debug("All filters cleared") + self.log.trace("All filters cleared") def update(self, *args): if self.app.get_status() == MiAZStatus.BUSY: @@ -597,7 +597,7 @@ def update(self, *args): de = datetime.now() dt = de - ds - self.log.debug(f"Workspace updated ({dt})") + self.log.trace(f"Workspace updated ({dt})") util.json_save(self.fcache, self.cache) GLib.idle_add(self.view.update, items) From f390f2f3ead29be9605327c0d48da224a9c1157b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20V=C3=ADrseda?= Date: Tue, 20 Aug 2024 20:16:00 +0200 Subject: [PATCH 4/8] Bump to version 0.1.0-rc1 --- MiAZ/miaz.py | 4 ++-- data/docs/VERSION | 2 +- meson.build | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/MiAZ/miaz.py b/MiAZ/miaz.py index b56bcf4e..810efc10 100755 --- a/MiAZ/miaz.py +++ b/MiAZ/miaz.py @@ -16,7 +16,7 @@ from MiAZ.backend.log import MiAZLog from MiAZ.backend.util import which -VERSION = '0.0.99' +VERSION = '0.1.0-rc1+build.1' log = MiAZLog('MiAZ') ENV = {} @@ -223,6 +223,6 @@ def main(): """ This is the entry point when the program is installed via Meson """ - log.debug("MiAZ installation done via Meson!") + log.trace("MiAZ installation done via Meson!") app = MiAZ(ENV) app.run() diff --git a/data/docs/VERSION b/data/docs/VERSION index 9a0bf0d7..d6799408 100644 --- a/data/docs/VERSION +++ b/data/docs/VERSION @@ -1 +1 @@ -0.0.99 +0.1.0-rc1+build.1 diff --git a/meson.build b/meson.build index 04743398..2c8ecf81 100644 --- a/meson.build +++ b/meson.build @@ -1,5 +1,5 @@ project('MiAZ', - version: '0.0.99', + version: '0.1.0-rc1+build.1', meson_version: '>= 0.61.2', default_options: [ 'warning_level=2', ], From 7eb33158099ffea20960c2844571b331fa1ad7a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20V=C3=ADrseda?= Date: Wed, 21 Aug 2024 09:31:52 +0200 Subject: [PATCH 5/8] change some message log levels --- MiAZ/backend/pluginsystem.py | 2 +- MiAZ/frontend/desktop/app.py | 2 +- MiAZ/frontend/desktop/widgets/workspace.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MiAZ/backend/pluginsystem.py b/MiAZ/backend/pluginsystem.py index ddf785c8..9fbd9561 100644 --- a/MiAZ/backend/pluginsystem.py +++ b/MiAZ/backend/pluginsystem.py @@ -156,7 +156,7 @@ def unload_plugin(self, plugin: Peas.PluginInfo): pname = plugin.get_name() pvers = plugin.get_version() self.engine.unload_plugin(plugin) - self.log.debug(f"Plugin {pname} v{pvers} ({ptype}) unloaded") + self.log.info(f"Plugin {pname} v{pvers} ({ptype}) unloaded") except Exception as error: self.log.error(error) diff --git a/MiAZ/frontend/desktop/app.py b/MiAZ/frontend/desktop/app.py index e5046266..0bd21219 100644 --- a/MiAZ/frontend/desktop/app.py +++ b/MiAZ/frontend/desktop/app.py @@ -237,7 +237,7 @@ def switch_finish(self, *args): watcher.set_path(repository.docs) watcher.set_active(active=True) self.app.set_service('watcher', watcher) - self.log.debug("Repository switch finished") + self.log.trace("Repository switch finished") # Setup stack pages mainbox = self.get_widget('window-mainbox') diff --git a/MiAZ/frontend/desktop/widgets/workspace.py b/MiAZ/frontend/desktop/widgets/workspace.py index 6711fe4e..06772f0b 100644 --- a/MiAZ/frontend/desktop/widgets/workspace.py +++ b/MiAZ/frontend/desktop/widgets/workspace.py @@ -107,7 +107,7 @@ def _on_config_used_updated(self, *args): # updated, therefore, the whole cache must be invalidated :/ self.initialize_caches() # ~ self.update() - self.log.debug("Config changed") + self.log.trace("Caches initialized") def _on_filename_renamed(self, util, source, target): projects = self.app.get_service('Projects') From 55917ba09751ca0a8a5a0a619eeffe700cdca77e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20V=C3=ADrseda?= Date: Wed, 21 Aug 2024 09:32:42 +0200 Subject: [PATCH 6/8] fix(Configview): Skip error disabling 'already disabled' plugins and change some message log levels --- MiAZ/frontend/desktop/widgets/configview.py | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/MiAZ/frontend/desktop/widgets/configview.py b/MiAZ/frontend/desktop/widgets/configview.py index 42652428..c925fad3 100644 --- a/MiAZ/frontend/desktop/widgets/configview.py +++ b/MiAZ/frontend/desktop/widgets/configview.py @@ -456,15 +456,21 @@ def _on_item_used_remove(self, *args): plugin = plugin_manager.get_plugin_info(selected_plugin.id) if plugin.is_loaded(): plugin_manager.unload_plugin(plugin) - self.log.debug(f"Plugin '{selected_plugin.id}' unloaded") + self.log.trace(f"Plugin '{selected_plugin.id}' unloaded") except AttributeError as error: self.log.error(f"Unknown error unloading plugin '{selected_plugin.id}'") self.log.error(error) finally: - del(plugins_used[selected_plugin.id]) - self.log.debug(f"Plugin '{selected_plugin.id}' removed from used view") - self.config.save_used(items=plugins_used) - self._update_view_used() + try: + del(plugins_used[selected_plugin.id]) + self.log.debug(f"Plugin '{selected_plugin.id}' deactivated") + self.config.save_used(items=plugins_used) + self._update_view_used() + except KeyError: + # FIXME: it shouldn't reach this code. + # It happens when the user removes a plugin from the + # used view and hit the button remove ([<]) again. + pass def _on_item_used_add(self, *args): plugin_manager = self.app.get_service('plugin-manager') @@ -478,14 +484,13 @@ def _on_item_used_add(self, *args): i_title = item_type.__title__ if not plugin_used: plugins_used[selected_plugin.id] = selected_plugin.title - self.log.debug(f"Using {selected_plugin.id} ({selected_plugin.title})") plugin = plugin_manager.get_plugin_info(selected_plugin.id) if not plugin.is_loaded(): plugin_manager.load_plugin(plugin) self.config.save_used(items=plugins_used) self._update_view_used() - self.log.debug(f"{i_title} {selected_plugin.id} not used yet. Can be used now") + self.log.debug(f"{i_title} {selected_plugin.id} activated") else: - self.log.debug(f"{i_title} {selected_plugin.id} is already being used") + self.log.debug(f"{i_title} '{selected_plugin.id}' was already activated. Nothing to do") From 39cf411d723a7e3b512c3ad2df790a632c036e2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20V=C3=ADrseda?= Date: Wed, 21 Aug 2024 09:33:21 +0200 Subject: [PATCH 7/8] fix(Rename): add missing icons for date and concept actionrows --- MiAZ/frontend/desktop/widgets/rename.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/MiAZ/frontend/desktop/widgets/rename.py b/MiAZ/frontend/desktop/widgets/rename.py index a6f4a7e1..28ffda28 100644 --- a/MiAZ/frontend/desktop/widgets/rename.py +++ b/MiAZ/frontend/desktop/widgets/rename.py @@ -156,12 +156,14 @@ def _set_suggestion(self, dropdown, suggestion): def __create_field_0_date(self): """Field 0. Date""" + icm = self.app.get_service('icons') title = _('Date') icon_name = 'io.github.t00m.MiAZ-res-date' + prefix = icm.get_image_by_name(icon_name) boxValue = self.__create_box_value() boxValue.set_hexpand(False) boxValue.set_valign(Gtk.Align.CENTER) - self.rowDate = self.factory.create_actionrow(title=title, suffix=boxValue) + self.rowDate = self.factory.create_actionrow(title=title, prefix=prefix, suffix=boxValue) self.boxMain.append(self.rowDate) self.calendar = Gtk.Calendar() self.calendar.connect('day-selected', self.calendar_day_selected) @@ -237,10 +239,11 @@ def __create_field_5_purpose(self): def __create_field_6_concept(self): """Field 6. Concept""" title = Concept.__title__ - # ~ icon_name = 'io.github.t00m.MiAZ-res-concept' - # ~ icon = self.icons.get_image_by_name(name=icon_name) + icm = self.app.get_service('icons') + icon_name = 'io.github.t00m.MiAZ-res-concept' + prefix = icm.get_image_by_name(icon_name) boxValue = self.__create_box_value() - self.rowConcept = self.factory.create_actionrow(title=title, suffix= boxValue) + self.rowConcept = self.factory.create_actionrow(title=title, prefix=prefix, suffix= boxValue) self.boxMain.append(self.rowConcept) button = self.factory.create_button('', '', css_classes=['flat']) button.set_sensitive(False) @@ -282,6 +285,7 @@ def __create_field_9_result(self, *args): title = _('Current filename') self.lblFilenameCur = Gtk.Label() self.lblFilenameCur.get_style_context().add_class(class_name='monospace') + self.lblFilenameCur.get_style_context().add_class(class_name='error') self.row_cur_filename = self.factory.create_actionrow(title=title, suffix=self.lblFilenameCur) self.boxMain.append(self.row_cur_filename) @@ -289,6 +293,7 @@ def __create_field_9_result(self, *args): title = _('New filename') self.lblFilenameNew = Gtk.Label() self.lblFilenameNew.get_style_context().add_class(class_name='monospace') + self.lblFilenameNew.get_style_context().add_class(class_name='success') self.row_new_filename = self.factory.create_actionrow(title=title, suffix=self.lblFilenameNew) self.boxMain.append(self.row_new_filename) From ab8d385979eddf243555417fcce453191480f14c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20V=C3=ADrseda?= Date: Wed, 21 Aug 2024 18:46:38 +0200 Subject: [PATCH 8/8] Update Changelog and README --- Changelog.md | 37 +++++++++++++++++++++++++++++++------ data/docs/README.md | 22 ++++++++++++++++------ 2 files changed, 47 insertions(+), 12 deletions(-) diff --git a/Changelog.md b/Changelog.md index 9eec3a45..44bf5df7 100644 --- a/Changelog.md +++ b/Changelog.md @@ -7,17 +7,42 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -### Added +### Added -### Changed +### Changed -### Deprecated +### Deprecated -### Removed +### Removed -### Fixed +### Fixed -### Security +### Security + + +## [0.1.0-rc1] - 2024-08-21 + +### First Release Candidate for version 0.1 + +### Added +- N/A + +### Changed +- Reduce log level verbosity (from DEBUG to TRACE) + +### Deprecated +- N/A + +### Removed +- N/A + +### Fixed + +- Add missing icons for date and concept actionrows in Rename dialog +- Do not raise error when disabling an already disabled plugin + +### Security +- N/A ## [0.0.99] - 2024-07-25 diff --git a/data/docs/README.md b/data/docs/README.md index c56c6037..df1d543b 100644 --- a/data/docs/README.md +++ b/data/docs/README.md @@ -23,18 +23,28 @@ MiAZ helps you comply with these rules effortlessly. ## Changelog -All notable changes to this project will be documented in this file. +### [0.1.0-rc1] - 2024-08-21 -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +First Release Candidate for version 0.1 +### Added +- N/A -### [0.0.99] - 2024-07-25 +### Changed +- Reduce log level verbosity (from DEBUG to TRACE) -#### Initial pre-release for version 0.1 +### Deprecated +- N/A -Fully functional application to manage personal documents with many features (see README) +### Removed +- N/A +### Fixed +- Add missing icons for date and concept actionrows in Rename dialog +- Do not raise error when disabling an already disabled plugin + +### Security +- N/A ## Features