Skip to content

Commit

Permalink
reverting FontAwesome in MidWinter
Browse files Browse the repository at this point in the history
  • Loading branch information
browniebraun committed Jan 17, 2025
1 parent 811bae5 commit 0701cdf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
20 changes: 10 additions & 10 deletions include/themes/midwinter/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ function setupTheme() {
break;
default:
}
$('<i class="ti ti-lock" data-helper="' + $(this).attr('id') + '" data-func="togglePwdInputField"></i>').insertAfter($(this));
$('<i class="fa fa-lock" data-helper="' + $(this).attr('id') + '" data-func="togglePwdInputField"></i>').insertAfter($(this));
}
}
}else {
Expand Down Expand Up @@ -268,7 +268,7 @@ function setupTheme() {
);

/* dashboards */
new navigationButton('dashboards', 'Panels', 'Panels', 'ti ti-layout-dashboard', '#compact_tab_menu').show();
new navigationButton('dashboards', 'Panels', 'Panels', 'far fa-compass', '#compact_tab_menu').show();
new navigationBox(cactiDashboards, 'dashboards', 'full','auto', {
close: true,
search: 'searchToHighlight',
Expand All @@ -277,7 +277,7 @@ function setupTheme() {

/* settings */
if (cactiConsoleAllowed) {
new navigationButton('settings', 'Setup', 'Settings', 'ti ti-settings', '#compact_tab_menu');
new navigationButton('settings', 'Setup', 'Settings', 'fa fa-cogs', '#compact_tab_menu');
new navigationBox(zoom_i18n_settings, 'settings', 'full', 'auto', {
close: true,
search: 'searchToHighlight',
Expand All @@ -287,7 +287,7 @@ function setupTheme() {

/* tree */
if (cactiGraphsAllowed) {
new navigationButton('tree', 'Tree', 'Tree View','ti ti-seedling', '#compact_tab_menu').show();
new navigationButton('tree', 'Tree', 'Tree View','fa fa-seedling', '#compact_tab_menu').show();
new navigationBox( 'Tree', 'tree', 'full', 'auto', {
close: true,
search: 'searchCactiTree',
Expand All @@ -296,7 +296,7 @@ function setupTheme() {
}

/* user help */
new navigationButton('help', 'Help', 'Help', 'ti ti-message-circle-question', '#compact_user_menu').show();
new navigationButton('help', 'Help', 'Help', 'far fa-comments', '#compact_user_menu').show();
new navigationBox(help, 'help', 'half', '2', {
close: false,
search: false,
Expand All @@ -312,7 +312,7 @@ function setupTheme() {
}, 'left', $('.loggedInAs').text() ).build();

/* log out */
new navigationButton('logout', 'Exit', 'Sign Out','ti ti-logout', '#compact_user_menu', 'redirect', urlPath+'logout.php').show();
new navigationButton('logout', 'Exit', 'Sign Out','fas fa-right-from-bracket', '#compact_user_menu', 'redirect', urlPath+'logout.php').show();

/* table filters */
new navigationBox( 'Table Layout', 'displayOptions', 'full', '1', {
Expand All @@ -321,8 +321,8 @@ function setupTheme() {
resize: false,
dock: true,
}, 'right','Table Layout', 'auto').build();
new navigationButton('toggleColorMode', 'Color', 'Toggle light/dark Mode', 'ti ti-brightness-filled', '#navControl', 'toggleColorMode', 'on').show();
new navigationButton('kioskMode', 'Kiosk', 'Enable Kiosk Mode', 'ti ti-browser-maximize', '#navControl', 'kioskMode', 'on').show();
new navigationButton('toggleColorMode', 'Color', 'Toggle light/dark Mode', 'fas fa-circle-half-stroke', '#navControl', 'toggleColorMode', 'on').show();
new navigationButton('kioskMode', 'Kiosk', 'Enable Kiosk Mode', 'fas fa-tv', '#navControl', 'kioskMode', 'on').show();
}
}

Expand Down Expand Up @@ -568,7 +568,7 @@ function setupDefaultElements() {


// let btn_filter1 = new navigationButton('displayDockTop', 'Filter', 'Show Filter Dock','fas fa-filter', '#navFilter', 'toggleCactiDockNavigationBox', 'Top');
let btn_filter = new navigationButton('displayFilterOptions', 'Filter', 'Show Filter Dock','ti ti-filter', '#navFilter');
let btn_filter = new navigationButton('displayFilterOptions', 'Filter', 'Show Filter Dock','fas fa-filter', '#navFilter');
let btn_calendar = new navigationButton('daterangepicker', 'Calendar', 'Select Timeframe', 'fas fa-calendar-alt', '#navFilter', '', '');
let btn_add = new navigationButton('formAction', 'New', 'Add','fa fa-plus', '#navFilter');

Expand Down Expand Up @@ -613,7 +613,7 @@ function setupDefaultElements() {
}

/* display option: table layout */
let btn_table_layout = new navigationButton('displayOptions', 'Table', 'Setup Table Layout','ti ti-adjustments-horizontal', '#navFilter');
let btn_table_layout = new navigationButton('displayOptions', 'Table', 'Setup Table Layout','fas fa-sliders', '#navFilter');

if ($('tr.tableHeader').length !== 0) {
let cArray = [];
Expand Down
12 changes: 6 additions & 6 deletions include/themes/midwinter/midwinter.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ function get_dashboards_content(){
compact_tab_menu_content +=
'<li class="menuitem" id="menu_home">'
+ '<a class="menu_parent" href="#" inert>'
+ '<i class="menu_glyph ignore ti ti-home"></i>'
+ '<i class="menu_glyph ignore fa fa-home"></i>'
+ '<span>'+cactiHome+'</span>'
+ '</a>'
+ '<ul>'
Expand Down Expand Up @@ -276,7 +276,7 @@ function get_dashboards_content(){
compact_tab_menu_content +=
'<li class="menuitem" id="menu_tab_miscellaneous">'
+ '<a class="menu_parent" href="#" inert>'
+ '<i class="menu_glyph ignore ti ti-puzzle"></i>'
+ '<i class="menu_glyph ignore fas fa-puzzle-piece"></i>'
+ '<span>'+cactiMisc+'</span>'
+ '</a>'
+'<ul>';
Expand Down Expand Up @@ -309,7 +309,7 @@ function get_help_content() {
'<ul class="nav">'
+ '<li class="menuitem" id="menu_user_help">'
+ '<a class="menu_parent" href="#" inert>'
+ '<i class="menu_glyph ti ti-cloud-data-connection"></i>'
+ '<i class="menu_glyph fas fa-book-medical"></i>'
+ '<span>'+cactiGeneral+'</span>'
+ '</a>'
+ '<ul>'
Expand Down Expand Up @@ -342,7 +342,7 @@ function get_help_content() {
+ '</li>'
+ '<li class="menuitem" id="menu_user_help">'
+ '<a class="menu_parent" href="#" inert>'
+ '<i class="menu_glyph ti ti-heart-handshake"></i>'
+ '<i class="menu_glyph fas fa-handshake"></i>'
+ '<span>'+cactiContributeTo+'</span>'
+ '</a>'
+ '<ul>'
Expand Down Expand Up @@ -382,7 +382,7 @@ function get_user_content() {
+ '</li>'
+ '<li class="menuitem double" id="menu_user_action">'
+ '<a class="menu_parent" href="#" inert>'
+ '<i class="menu_glyph ti ti-palette"></i>'
+ '<i class="menu_glyph fas fa-swatchbook"></i>'
+ '<span>'+cactiTheme+'</span>'
+ '</a>'
+ '<ul>'
Expand Down Expand Up @@ -430,7 +430,7 @@ function get_user_content() {
+ '</li>'
+ '<li class="menuitem double" id="menu_user_action">'
+ '<a class="menu_parent" href="#" inert>'
+ '<i class="menu_glyph ti ti-device-tablet"></i>'
+ '<i class="menu_glyph fas fa-tablet-screen-button"></i>'
+ '<span>Mobile Devices</span>'
+ '</a>'
+ '<ul>'
Expand Down

0 comments on commit 0701cdf

Please sign in to comment.