Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dark theme for Mars 4.5 Mips?

I am using Mars MIPS Assembler and Runtime Simulator 4.5 for an assembly class and i find white background tiring when you stare at a screen for hours.

I want to change the editor's color to a darker tone (preferably the whole window) like sublime text or eclipse's dark theme .

There is no such option in settings so i tried to search the java code in the .jar to see if there is a resonable fix with no luck.

Is there actually a way to change the color , has anyone tried it?

like image 646
Bill Avatar asked Feb 21 '17 10:02

Bill


People also ask

How do you get to dark mode on Mars?

FIRST, try to set Eclipse Dark Theme in Window->Preference->Appearance and choose Dark Theme, select OK. And after that, select Window->Preference->Appearance->Color Theme choose one and select Apply.

What does Mars stand for MIPS?

MARS (MIPS Assembler and Runtime Simulator)

Is Mars MIPS big endian?

Classic MIPS was big-endian. Later MIPS support selectable endianness. MARS emulates a little-endian MIPS, which is Java's endianness, probably not a coincidence. SPIM emulates a MIPS with the endianness of the C implementation (i.e. of the host CPU).


1 Answers

I have tried it and ended up implementing a theme engine. Check it out: https://github.com/aeris170/MARS-Theme-Engine

Edit: I know link-only answers are frowned upon but answering this question without one is quite impossible given the complexity of MARS. It is impossible to include the essential parts of a possible solution since the said "essential parts" cannot possibly fit into a post like this one. The implementation I have has over 2k LOC. This doesn't necessarily mean there isn't a simpler solution, but given there are no other answers, it is the only solution we have. Therefore, please don't delete this answer, the link is not going anywhere, it will stay forever in my Github profile. By deleting this answer you would be wasting the productivity and time of many people who come across this "unanswered" question.

like image 192
Doga Oruc Avatar answered Sep 19 '22 15:09

Doga Oruc