Skip to content

Commit

Permalink
feat: 🎨 replace all icons
Browse files Browse the repository at this point in the history
  • Loading branch information
thkruz committed Aug 4, 2024
1 parent 6f0f53c commit 388c87a
Show file tree
Hide file tree
Showing 50 changed files with 31 additions and 21 deletions.
6 changes: 4 additions & 2 deletions public/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -623,12 +623,14 @@ ul {
}

.remove-icon img {
width: 15px;
width: 25px;
filter: invert(52%) sepia(130%) saturate(7323%) hue-rotate(353deg) brightness(100%) contrast(86%);
}

.add-icon img {
padding-top: 35px;
width: 15px;
width: 25px;
filter: hue-rotate(275deg) brightness(1.2);
}

#iss-stream-menu {
Expand Down
Binary file removed public/img/add.png
Binary file not shown.
Binary file removed public/img/help.png
Binary file not shown.
Binary file modified public/img/icons/about.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/icons/add.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/img/icons/analysis.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/img/icons/breakup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/img/icons/calendar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/img/icons/calendar2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/img/icons/camera.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/img/icons/collisions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/img/icons/colors.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/img/icons/custom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/img/icons/debug.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/img/icons/edit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/img/icons/fence.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/img/icons/find.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/img/icons/find2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/img/icons/flag.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/img/icons/fov.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/icons/help.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/img/icons/info.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/icons/layers-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/img/icons/lookangles.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/img/icons/missile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/img/icons/multi-site.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/icons/orbit.png
Binary file modified public/img/icons/photoManager.png
Binary file modified public/img/icons/planetarium.png
Binary file modified public/img/icons/radar.png
Binary file modified public/img/icons/radio-tower.png
Binary file added public/img/icons/remove.png
Binary file modified public/img/icons/reports.png
Binary file modified public/img/icons/rocket.png
Binary file modified public/img/icons/sat2.png
Binary file modified public/img/icons/sat3.png
Binary file added public/img/icons/sat5.png
Binary file modified public/img/icons/satchng.png
Binary file modified public/img/icons/search.png
Binary file modified public/img/icons/settings.png
Binary file modified public/img/icons/time-machine.png
Binary file modified public/img/icons/video.png
Binary file added public/img/icons/view_timeline.png
Binary file modified public/img/icons/watchlist.png
Binary file removed public/img/layers-icon.png
Diff not rendered.
Binary file removed public/img/remove.png
Diff not rendered.
12 changes: 10 additions & 2 deletions src/plugins/select-sat-manager/sat-info-box.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,19 @@

#sat-add-watchlist,
#sat-remove-watchlist {
width: 15px;
height: 15px;
width: 25px;
height: 25px;
cursor: pointer;
}

#sat-add-watchlist {
filter: hue-rotate(275deg) brightness(1.2);
}

#sat-remove-watchlist {
filter: invert(52%) sepia(130%) saturate(7323%) hue-rotate(353deg) brightness(100%) contrast(86%);
}

.sat-info-section-header {
font-size: 18px;
text-align: center;
Expand Down
28 changes: 14 additions & 14 deletions src/plugins/select-sat-manager/sat-info-box.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import { CoordinateTransforms } from '@app/static/coordinate-transforms';
import { SatMath } from '@app/static/sat-math';
import { SensorMath, TearrData } from '@app/static/sensor-math';
import { StringExtractor } from '@app/static/string-extractor';
import addPng from '@public/img/add.png';
import removePng from '@public/img/remove.png';
import addPng from '@public/img/icons/add.png';
import removePng from '@public/img/icons/remove.png';
import Draggabilly from 'draggabilly';
import { BaseObject, CatalogSource, DEG2RAD, DetailedSatellite, MINUTES_PER_DAY, RfSensor, SpaceObjectType, Sun, cKmPerMs, eci2lla } from 'ootk';
import { KeepTrackPlugin } from '../KeepTrackPlugin';
Expand Down Expand Up @@ -566,11 +566,12 @@ export class SatInfoBox extends KeepTrackPlugin {
};

private addRemoveWatchlist_() {
const watchlistPlugin = <WatchlistPlugin>keepTrackApi.getPlugin(WatchlistPlugin);
const watchlistPlugin = keepTrackApi.getPlugin(WatchlistPlugin);

if (watchlistPlugin) {
const id = this.selectSatManager_.selectedSat;

keepTrackApi.getSoundManager().play(SoundNames.CLICK);
if (watchlistPlugin.isOnWatchlist(id)) {
watchlistPlugin.removeSat(id);
} else {
Expand Down Expand Up @@ -857,17 +858,16 @@ export class SatInfoBox extends KeepTrackPlugin {
getEl('ui-wrapper').insertAdjacentHTML(
'beforeend',
keepTrackApi.html`
<div id="sat-infobox" class="text-select satinfo-fixed start-hidden">
<div id="sat-info-top-links">
<div id="sat-info-title" class="center-text sat-info-section-header">
<img id="sat-add-watchlist" src="${addPng}"/>
<img id="sat-remove-watchlist" src="${removePng}"/>
<span id="sat-info-title-name">
This is a title
</span>
</div>
${
getEl('search')
<div id="sat-infobox" class="text-select satinfo-fixed start-hidden">
<div id="sat-info-top-links">
<div id="sat-info-title" class="center-text sat-info-section-header">
<img id="sat-add-watchlist" src="${addPng}"/>
<img id="sat-remove-watchlist" src="${removePng}"/>
<span id="sat-info-title-name">
This is a title
</span>
</div>
${getEl('search')
? keepTrackApi.html`
<div id="all-objects-link" class="link sat-infobox-links sat-only-info" data-position="top" data-delay="50"
data-tooltip="Find Related Objects">Find all objects from this launch...</div>
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/top-menu/top-menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { keepTrackApi } from '@app/keepTrackApi';
import { getEl } from '@app/lib/get-el';
import { adviceManagerInstance } from '@app/singletons/adviceManager';
import fullscreenIconPng from '@public/img/fullscreen-icon.png';
import helpPng from '@public/img/help.png';
import findPng from '@public/img/icons/find.png';
import helpPng from '@public/img/icons/help.png';
import layersIconPng from '@public/img/icons/layers-icon.png';
import soundOffPng from '@public/img/icons/sound-off.png';
import soundOnPng from '@public/img/icons/sound-on.png';
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/watchlist/watchlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ import { LineTypes } from '@app/singletons/draw-manager/line-manager';
import { errorManagerInstance } from '@app/singletons/errorManager';
import { PersistenceManager, StorageKey } from '@app/singletons/persistence-manager';
import { isThisNode } from '@app/static/isThisNode';
import addPng from '@public/img/add.png';
import addPng from '@public/img/icons/add.png';
import removePng from '@public/img/icons/remove.png';
import watchlistPng from '@public/img/icons/watchlist.png';
import removePng from '@public/img/remove.png';
import saveAs from 'file-saver';
import { CatalogSource, DetailedSatellite } from 'ootk';
import { KeepTrackPlugin } from '../KeepTrackPlugin';
Expand Down

0 comments on commit 388c87a

Please sign in to comment.